Makefile 274 B

12345678910111213141516171819
  1. NAME=tralloc
  2. INC=$(NAME).h
  3. SRC=$(NAME).c
  4. OBJ=$(NAME).o
  5. CFLAGS=-Wall -ansi -pedantic
  6. all:
  7. ${CC} $(CFLAGS) -c $(SRC)
  8. ar -rc $(NAME).a $(OBJ)
  9. test:
  10. rm -f test
  11. ${CC} -Wall -pedantic -g -DTRALLOC_WRAP -o test test.c tralloc.c
  12. @./test
  13. clean:
  14. rm -f $(NAME).a $(OBJ) test