Files
stutterfuzz/Makefile

19 lines
482 B
Makefile
Raw Normal View History

2016-03-03 23:02:19 -08:00
COMP ?= clang
DISABLED_WARNINGS ?= -Wno-padded -Wno-disabled-macro-expansion
2016-03-03 23:02:19 -08:00
CFLAGS ?= -Weverything -Werror -O3 -g --std=gnu11 --pedantic-errors -fPIE -fstack-protector-strong -D_GNU_SOURCE $(DISABLED_WARNINGS)
LDFLAGS ?= $(CFLAGS) -Wl,-z,relro -Wl,-z,now -pie
LIBS ?=
2016-03-04 13:37:23 -08:00
OBJ = buf.o list.o rand.o
2016-03-03 23:02:19 -08:00
all: stutterfuzz
clean:
rm -rf *.o stutterfuzz
%.o: %.c *.h
$(COMP) -c $(CFLAGS) $< -o $@
stutterfuzz: stutterfuzz.o $(OBJ)
$(COMP) $(LDFLAGS) -o stutterfuzz stutterfuzz.o $(OBJ)