CXX = g++ CXXFLAGS = -Wall -ansi -pedantic # CPPFLAGS = -I<include_dir> # LDFLAGS = -L<lib_dir> # LDLIBS = -l<lib> HELLO_OBJS = hello.o world.o $(HELLO_OBJS): hello.h hello: $(HELLO_OBJS) $(CXX) $(LDFLAGS) $(HELLO_OBJS) $(LDLIBS) -o hello