Makefile 215 B

123456789101112131415
  1. #
  2. # Note: use gmake
  3. #
  4. PROGRAM = bin/dupindex.exe
  5. SRC_CPP = $(wildcard *.cpp)
  6. OBJECTS = $(SRC_CPP:.cpp=.o)
  7. all: clean $(PROGRAM)
  8. $(PROGRAM): $(SRC_CPP)
  9. g++ -O2 -o $@ $<
  10. clean:
  11. rm $(PROGRAM) || echo ""