Makefile 620 B

1234567891011121314151617181920212223
  1. #
  2. # Copyright (c) 2013 No Face Press, LLC
  3. # License http://opensource.org/licenses/mit-license.php MIT License
  4. #
  5. CFLAGS= -W -Wall -Wno-unused-parameter -I.. -I. -g
  6. LIB_SOURCES = CivetServer.cpp ../civetweb.c ../md5.c
  7. LIBS = -lpthread
  8. all:
  9. $(CXX) $(CFLAGS) example.cpp $(LIB_SOURCES) $(LIBS) -o example;
  10. MSVC = e:/vc6
  11. CL = $(MSVC)/bin/cl
  12. CLFLAGS = /MD /TC /nologo $(DBG) /W3 /DNO_SSL \
  13. /I$(MSVC)/include /I.. /I. /Dsnprintf=_snprintf \
  14. /link /incremental:no /libpath:$(MSVC)/lib /machine:IX86
  15. windows:
  16. $(CL) example.cpp $(LIB_SOURCES) $(CLFLAGS)
  17. clean:
  18. rm -rf example *.exe *.dSYM *.obj