Makefile 503 B

12345678910111213141516171819202122232425262728293031
  1. CC = gcc
  2. CFLAGS := -lz
  3. CFLAGS += -Wall -fanalyzer
  4. OBJECTS = src/didiextract.o \
  5. src/print.o \
  6. src/reader.o \
  7. src/pefile.o
  8. all: didiextract
  9. didiextract: $(OBJECTS)
  10. $(CC) -o $@ -I./src $(CFLAGS) $^
  11. debug: CFLAGS += -g
  12. debug: didiextract
  13. clean:
  14. rm -f src/*.o didiextract
  15. # Make sure header files are evaluated against changes
  16. $(OBJECTS): src/errors.h \
  17. src/print.h \
  18. src/reader.h \
  19. src/pefile.h \
  20. src/version.h
  21. .PHONY: all debug clean