makefile 300 B

12345678910111213141516171819
  1. CFLAGS=-Wall -Wextra -Wshadow -O3 -std=c99
  2. objects=bom.o
  3. bomToolkit: $(objects)
  4. clean:
  5. @rm *.o
  6. test:
  7. cc $(CFLAGS) -c bom.c
  8. cc $(CFLAGS) test_bom.c $(objects) -o test_bom
  9. @cp testBOM testRemove
  10. @cp testNoBOM testAdd
  11. @./test_bom
  12. @rm test_bom
  13. @rm testRemove
  14. @rm testAdd
  15. default: bomToolkit