12345678910111213141516171819202122232425262728293031 |
- CC = gcc
- CFLAGS := -lz
- CFLAGS += -Wall -fanalyzer
- OBJECTS = src/didiextract.o \
- src/print.o \
- src/reader.o \
- src/pefile.o
- all: didiextract
- didiextract: $(OBJECTS)
- $(CC) -o $@ -I./src $(CFLAGS) $^
- debug: CFLAGS += -g
- debug: didiextract
- clean:
- rm -f src/*.o didiextract
- # Make sure header files are evaluated against changes
- $(OBJECTS): src/errors.h \
- src/print.h \
- src/reader.h \
- src/pefile.h \
- src/version.h
- .PHONY: all debug clean
|