Makefile
上传用户:tany51
上传日期:2013-06-12
资源大小:1397k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. # Makefile for Diablo2 Control Server
  2. basedir = ../
  3. commondir = ${basedir}/common
  4. compatdir = ${basedir}/compat
  5. SHELL = /bin/sh
  6. TOUCH = touch
  7. RMF = rm -f
  8. ECHO = echo
  9. TAGS = /usr/bin/ctags
  10. CC = gcc
  11. COMPILE = ${CC} -DD2CS -DHAVE_CONFIG_H -DD2CS_DEFAULT_CONF_FILE="${confdir}/d2cs.conf" -I. -I"${basedir}"
  12. OPTIONS = -g2 -O2 -Wall
  13. DEBUG_OPTIONS = -Wshadow -Wredundant-decls -Wnested-externs -Wwrite-strings -Wcast-align
  14. -Wstrict-prototypes -Wmissing-declarations
  15. LINK = ${CC} -g2 -O2 -Wall
  16. d2cs_SBIN = ../../sbin/d2cs
  17. d2cs_OBJECTS = main.o d2gs.o handle_d2gs.o serverqueue.o connection.o game.o server.o
  18. handle_init.o handle_d2cs.o d2charfile.o xstring.o gamequeue.o conf.o prefs.o cmdline_parse.o
  19. bnetd.o handle_bnetd.o s2s.o net.o d2ladder.o handle_signal.o
  20. ${commondir}/check_alloc.o ${commondir}/hashtable.o ${commondir}/hexdump.o
  21. ${commondir}/eventlog.o ${commondir}/list.o ${commondir}/packet.o ${commondir}/bn_type.o
  22. ${commondir}/addr.o ${commondir}/util.o ${commondir}/queue.o ${commondir}/network.o
  23. ${compatdir}/inet_aton.o ${compatdir}/inet_ntoa.o ${compatdir}/strdup.o ${compatdir}/strerror.o 
  24. ${compatdir}/strtoul.o ${compatdir}/strftime.o ${compatdir}/strcasecmp.o ${compatdir}/strncasecmp.o
  25. ${compatdir}/psock.o ${compatdir}/uname.o ${compatdir}/gettimeofday.o ${compatdir}/difftime.o 
  26. ${compatdir}/pdir.o
  27. TARGET = ${d2cs_SBIN}
  28. OBJECTS = ${d2cs_OBJECTS}
  29. .PHONY: all
  30. all: ${TARGET} 
  31. .PHONY: clean
  32. clean:
  33. @-${RMF} core
  34. @-${RMF} .tags
  35. @-${RMF} .depend
  36. @-${RMF} ${SBINS}
  37. @-${RMF} ${OBJECTS}
  38. .c.o:
  39. ${COMPILE} ${OPTIONS} ${DEBUG_OPTIONS} -c $< -o $@
  40. ${d2cs_SBIN}:${d2cs_OBJECTS}
  41. @${RMF} $@
  42. ${LINK} ${d2cs_OBJECTS} ${LINK_LIBS} -o $@
  43. tags:
  44. @-$(TAGS) --langmap=c -f .tags *.c *.h