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)