Makefile 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ###########################################################################
  2. # WLIB library makefile
  3. ##########################################################################
  4. #Define cc to be your C compiler
  5. CC = g++
  6. #This tells make how to go from a .cpp to a .o
  7. .SUFFIXES: .cpp
  8. .cpp.o:
  9. ${CC} ${CFLAGS} -c $<
  10. INCLUDE = -I. -I..
  11. CFLAGS = ${INCLUDE} -D_REENTRANT -DDEBUG -D_UNIX
  12. AR = ar -r
  13. #CC is dumb and won't include templates in a library uness you define
  14. #CC -xar as your replacement for 'ar'
  15. #AR = CC -xar
  16. RM = rm -f
  17. RANLIB = ranlib
  18. ############################################################################
  19. #Dont mess with any of this stuff
  20. OBJECTS = wtime.o monod.o wdebug.o sem4.o streamer.o syslogd.o wstring.o \
  21. configfile.o threadfac.o critsec.o xtime.o timezone.o
  22. LIBRARY = libwlib.a
  23. all: $(LIBRARY)
  24. $(LIBRARY): $(OBJECTS)
  25. ${RM} libwlib.a
  26. ${AR} libwlib.a $(OBJECTS)
  27. #${AR} $(OBJECTS) -o libwlib.a
  28. $(RANLIB) libwlib.a
  29. clean:
  30. - rm -f $(LIBRARY) *.o core