Makefile (308B)
1 bin = sscall 2 ver = 0.1 3 obj = sscall.o 4 5 CC = gcc 6 CFLAGS += -Wall -Wextra -I/usr/local/include 7 LDFLAGS += -lao -lpthread -L/usr/local/lib 8 9 $(bin): $(obj) 10 $(CC) $(CFLAGS) -o $@ $(obj) $(LDFLAGS) 11 12 %.o: %.c 13 $(CC) $(CFLAGS) -c -o $@ $< 14 15 clean: 16 @rm -rf $(bin) $(obj) 17 18 all: 19 make clean && make 20 21 .PHONY: all clean