Try it this way around:
CliqueGenetic.exe : CliqueGenetic.o SubGraph.o
g++ -o $@ $^
CliqueGenetic.o : CliqueGenetic.cpp SubGraph.h
SubGraph.o : SubGraph.cpp SubGraph.h
#-------------------------------------------------------------
run: CliqueGenetic.exe
./CliqueGenetic.exe
clean:
rm -f *.o
rm -f *.exe
build: clean CliqueGenetic.exe
%.o: %.cpp
g++ -c $<
#====================================================
Last edited on