CXXFLAGS = -g -Wall -ansi -pedantic CXX := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) loader_demo: loader_demo.cc ../list_graph.hh ../bfs_iterator.hh loader.h $(CXX) $(CXXFLAGS) -I. -I.. loader_demo.cc -o loader_demo clean: $(RM) loader_demo .PHONY: clean