Makefile 787 B

1234567891011121314151617181920212223242526272829303132
  1. ##################################################
  2. # Makefile for libmextreme #
  3. # #
  4. # libextreme are handy dandy functions #
  5. # Use and modify as you like but please #
  6. # just email me with your changes #
  7. # #
  8. # mike@innercite.com #
  9. # #
  10. ##################################################
  11. PACKAGE = libextreme.a
  12. CC = gcc
  13. AR = ar
  14. CFLAGS = -g -O2
  15. OBJS = strparse.o esock_new.o esock_read.o esock_write.o
  16. HEADERS = extreme.h
  17. %.o:%.c $(HEADERS)
  18. $(CC) $(CFLAGS) -c $<
  19. $(PACKAGE):$(OBJS)
  20. $(AR) cru $@ $(OBJS)
  21. ranlib $(PACKAGE)
  22. clean:
  23. rm -f *.o core $(PACKAGE)