1#!/usr/bin/make -f 2 3ARGTABLE_SRC = $(wildcard *.c) 4ARGTABLE_OBJ = $(ARGTABLE_SRC:.c=.o) 5 6ARGTABLE_LIB = libargtable3.a 7 8$(ARGTABLE_OBJ): %.o: %.c 9 $(CC) -o $@ -c $(CFLAGS) $< 10 11$(ARGTABLE_LIB): $(ARGTABLE_OBJ) 12 $(AR) rc $@ $^ 13 $(RANLIB) $@ 14 15build: all 16 17all: $(ARGTABLE_LIB) 18 19install: 20 21clean: 22 rm -f $(ARGTABLE_OBJ) $(ARGTABLE_LIB) 23