Makefile 210 B

12345678910111213
  1. CC := gcc
  2. SRC := buf.c
  3. OUT := piecetable
  4. OPTS := -g -Wall -Wpedantic
  5. all: $(static)
  6. static:
  7. ${CC} $(OPTS) -c $(SRC) -o $(OUT).o
  8. ar rcs lib$(OUT).a $(OUT).o
  9. test:
  10. ${CC} $(OPTS) $(SRC) test.c -o $(OUT)-test