Makefile 330 B

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