Makefile 746 B

123456789101112131415161718192021222324252627282930313233
  1. ###########################################################################
  2. # TCP library makefile
  3. ##########################################################################
  4. #Define cc to be your C compiler
  5. CC = g++
  6. CFLAGS = -gstabs ${INCLUDE} -D_REENTRANT #-DDEBUG
  7. #This tells make how to go from a .cpp to a .o
  8. .SUFFIXES: .cpp
  9. .cpp.o:
  10. ${CC} ${CFLAGS} -c $<
  11. INCLUDE = -I.. -I.
  12. AR = ar -r
  13. RM = rm -f
  14. RANLIB = ranlib
  15. ############################################################################
  16. #Dont mess with any of this stuff
  17. OBJECTS = tcp.o udp.o packet.o field.o
  18. LIBRARY = libwnet.a
  19. all: $(LIBRARY)
  20. $(LIBRARY): $(OBJECTS)
  21. $(RM) $(LIBRARY)
  22. $(AR) $(LIBRARY) $(OBJECTS)
  23. $(RANLIB) $(LIBRARY)
  24. clean:
  25. - rm -f $(LIBRARY) $(OBJECTS) core