1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
.POSIX: CC = cc CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE CFLAGS = -std=c99 -Wall -O2 LDFLAGS = -s BIN = yes limit measure all: $(BIN) .o: $(CC) -o $@ $< $(LDFLAGS) .c.o: $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) clean: rm -f -- *.o *.su $(BIN) .SUFFIXES: .SUFFIXES: .c .o