ifneq ($(SCHED),) CFLAGS+=-DEDF endif CFLAGS+=-Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 -Wformat-security -Wimplicit-fallthrough=3 CFLAGS+=-Wtraditional-conversion -Wconversion -fno-strict-aliasing CFLAGS+=-Wno-unused-parameter -Wcast-qual -Wformat-signedness -Wshadow -Wtrampolines CFLAGS+=-Wshift-overflow=2 -Wstringop-overflow=4 -Wstrict-overflow=4 -Warray-bounds=2 CFLAGS+=-Wlogical-op -Wduplicated-cond -Wduplicated-branches -Wcast-align=strict -Wswitch-default -Wswitch-enum CFLAGS+=-D_FORTIFY_SOURCE=2 -O2 -Wall SOURCES=main.c OBJ=${SOURCES:.c=.o} PROG=tfd .PHONY: all all: $(PROG) $(PROG): $(OBJ) $(CC) $^ -o $@ .c: $(CC) $(CFLAGS) $< -o $@ .PHONY: clean clean: rm -f $(PROG) *.o