1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
CC = gcc STD = _GNU_SOURCE OBJS = A.o test.o B.o CFLAGS = -D__TZURTCH__ BIN = binary .PHONY: clean .c.o: $(CC) -c -Wall -I. $(CFLAGS) -D$(STD) -o $@ $< all: $(OBJS) $(CC) $(OBJS) -o $@ clean: rm -f *~ *.o core $(BIN)