Makefile (356B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | SRC_DIR = ../../../src INC_DIR = ../../../inc CC = gcc CFLAGS = -std=c99 -Wall -I$(INC_DIR) DEPS = i$(INC_DIR)/helper.h \ var.h \ OBJ = test.o \ $(SRC_DIR)/var.o OUT = test %.o: %.c $(DEPS) $(CC) $(CFLAGS) -c -o $@ $< $(OUT): $(OBJ) $(CC) $(CFLAGS) -o $@ $^ clean: rm *.o rm $(OUT) |