Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # Hard coded Makefile for windows
  2. CC = gcc
  3.  
  4. all: memcached.exe default_engine.so
  5.  
  6. CFLAGS = -std=gnu99 -O2 -DNDEBUG -fno-strict-aliasing -Wall \
  7. -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
  8. -Iinclude -Iwin32 -I/include -DHAVE_CONFIG_H
  9.  
  10. MEMCACHED_OBJS = cache.o config_parser.o globals.o hash.o isasl.o memcached.o \
  11. sasl_defs.o stats.o stdin_check.o thread.o util.o win32/defs.o win32/dlfcn.o \
  12. win32/ntservice.o win32/win32.o
  13.  
  14. DEFAULT_ENGINE_OBJS = assoc.o default_engine.o items.o slabs.o util.o
  15.  
  16. memcached.exe: win32/config_version.h $(MEMCACHED_OBJS)
  17. ${LINK.c} -o memcached.exe $(MEMCACHED_OBJS) -L/lib -levent -lmswsock \
  18. -lws2_32 -lpthread
  19.  
  20. default_engine.so: libs $(DEFAULT_ENGINE_OBJS)
  21. ${LINK.c} -o .libs/default_engine.so -shared ${DEFAULT_ENGINE_OBJS} \
  22. -L/lib -lpthread
  23.  
  24. win32/config_version.h:
  25. ./win32/config.sh
  26.  
  27. libs: .libs
  28. mkdir .libs
  29.  
  30. %.o: %.c
  31. ${COMPILE.c} -MD $< -o $@
Add Comment
Please, Sign In to add comment