Makefile.alone 345 B

12345678910111213141516171819202122232425262728
  1. CC = gcc
  2. CFLAGS =
  3. OBJECTS = card.o \
  4. gammavol.o \
  5. index.o \
  6. node.o \
  7. rect.o \
  8. sphvol.o \
  9. split.o
  10. all: librtree.a test
  11. librtree.a: $(OBJECTS)
  12. ar rcv librtree.a $(OBJECTS)
  13. ranlib librtree.a
  14. test: test.c librtree.a
  15. $(CC) $(LDFLAGS) -o $@ test.c librtree.a -lm
  16. .c.o:
  17. $(CC) $(CFLAGS) -Wall -c $<
  18. clean:
  19. rm -rf ./*.o ./*.a ./test