stoneage8.5/石器时代服务器端最新完整源代码/Serv/gmsv/longzoro/makefile
anson1788 a5b185b7ef Revert "re upload"
This reverts commit 274b7d169c.
2020-06-23 15:23:51 +08:00

377 lines
19 KiB
Makefile
Executable File

export CC=gcc
export RM=rm -f
export AR=ar cr
export MV=mv
export RANLIB=ranlib
export SED=sed
export SHELL=/bin/sh
INCFLAGS=-I. -I../include -I../lua
CFLAGS=-w -O3 -Wall -pipe $(INCFLAGS)
#Pentium 4 (Intel)
#CFLAGS=-march=pentium4 -O3 -pipe -fomit-frame-pointer $(INCFLAGS)
#Athlon XP (AMD)
#CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" $(INCFLAGS)
#Athlon64£º
#CFLAGS="-O2 -march=athlon64 -ftracer -fprefetch-loop-arrays -pipe" $(INCFLAGS)
ifeq ($(shell uname),CYGWIN_NT-5.1)
SQLSRC=sasql_cygwin.c
SQL=-lodbc32 -lz
endif
ifeq ($(shell uname),Linux)
SQLSRC=sasql_linux.c
SQL=-L /usr/lib/mysql/ -lmysqlclient -lz
endif
PROG=liblongzoro.a
SRC=move.c crypto.c characters.c luckstar.c newshop.c playerquestion.c $(SQLSRC)
OBJ=$(SRC:.c=.o)
ifeq (0,$(MAKELEVEL))
CC=gcc
RM=rm -f
AR=ar cr
MV=mv
RANLIB=ranlib
SED=sed
SHELL=/bin/sh
endif
all: $(PROG)
$(PROG): $(OBJ)
$(RM) $(PROG)
$(AR) $(PROG) $(OBJ)
$(RANLIB) $(PROG)
dos2unix:
dos2unix $(SRC) makefile
chmod:
chmod 777 $(SRC) makefile
depend:
$(MV) makefile makefile.bak
$(SED) -ne '1,/^# DO NOT DELETE THIS LINE/p' makefile.bak>makefile
$(CC) $(INCFLAGS) -M $(SRC) >> makefile
chmod 777 makefile
clean:
$(RM) $(PROG)
$(RM) $(OBJ)
$(RM) *~
distclean:
$(RM) $(PROG)
$(RM) $(OBJ)
$(RM) *~
$(MV) makefile Makefile.bak
$(SED) -ne '1,/^# DO NOT DELETE THIS LINE/p' makefile.bak>makefile
$(RM) makefile.bak
# DO NOT DELETE THIS LINE
move.o: move.c /usr/include/string.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/longzoro.h \
../include/longzoro/debug.h ../include/longzoro/move.h \
../include/char_base.h ../include/version.h ../include/skill.h \
../include/util.h /usr/include/sys/time.h /usr/include/time.h \
/usr/include/bits/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/title.h ../include/addressbook.h ../include/net.h \
../include/autil.h /usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h \
../include/char.h ../include/char_base.h ../include/char_data.h \
../include/item.h ../include/char.h ../include/autil.h
crypto.o: crypto.c /usr/include/stdio.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
/usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
/usr/include/bits/wchar.h /usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h /usr/include/string.h \
/usr/include/sys/types.h /usr/include/time.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/sys/stat.h \
/usr/include/bits/stat.h ../include/autil.h ../include/version.h \
../include/correct_bug.h ../include/common.h /usr/include/errno.h \
/usr/include/bits/errno.h /usr/include/linux/errno.h \
/usr/include/asm/errno.h /usr/include/asm-generic/errno.h \
/usr/include/asm-generic/errno-base.h ../include/longzoro/version.h \
../include/longzoro/longzoro.h ../include/longzoro/debug.h \
../include/util.h /usr/include/sys/time.h /usr/include/stdlib.h \
/usr/include/alloca.h
characters.o: characters.c /usr/include/string.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/longzoro.h \
../include/longzoro/debug.h ../include/common.h \
../include/longzoro/characters.h ../include/readmap.h ../include/util.h \
/usr/include/sys/time.h /usr/include/time.h /usr/include/bits/time.h \
/usr/include/sys/select.h /usr/include/bits/select.h \
/usr/include/bits/sigset.h /usr/include/stdlib.h \
/usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/saacproto_cli.h ../include/version.h \
../include/saacproto_util.h /usr/include/strings.h \
/usr/include/unistd.h /usr/include/bits/posix_opt.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
../include/char_base.h ../include/skill.h ../include/title.h \
../include/addressbook.h ../include/net.h ../include/autil.h \
/usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h
luckstar.o: luckstar.c /usr/include/string.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/longzoro.h \
../include/longzoro/debug.h ../include/longzoro/luckstar.h \
../include/char_base.h ../include/version.h ../include/skill.h \
../include/util.h /usr/include/sys/time.h /usr/include/time.h \
/usr/include/bits/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/title.h ../include/addressbook.h ../include/net.h \
../include/autil.h /usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h \
../include/char.h ../include/char_base.h ../include/char_data.h \
../include/item.h ../include/char.h ../include/autil.h \
../include/enemy.h ../include/item.h
newshop.o: newshop.c /usr/include/string.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/longzoro.h \
../include/longzoro/debug.h ../include/longzoro/newshop.h \
../include/longzoro/sasql.h ../include/longzoro/version.h \
../include/char.h ../include/char_base.h ../include/version.h \
../include/skill.h ../include/util.h /usr/include/sys/time.h \
/usr/include/time.h /usr/include/bits/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/title.h ../include/addressbook.h ../include/net.h \
../include/autil.h /usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h \
../include/char_data.h ../include/item.h ../include/char.h \
../include/autil.h ../include/enemy.h ../include/item.h \
../include/lssproto_serv.h ../include/lssproto_util.h \
/usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/confname.h \
/usr/include/getopt.h
playerquestion.o: playerquestion.c /usr/include/string.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/longzoro.h \
../include/longzoro/debug.h ../include/longzoro/playerquestion.h \
../include/char_base.h ../include/version.h ../include/skill.h \
../include/util.h /usr/include/sys/time.h /usr/include/time.h \
/usr/include/bits/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/title.h ../include/addressbook.h ../include/net.h \
../include/autil.h /usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h \
../include/char.h ../include/char_base.h ../include/char_data.h \
../include/item.h ../include/char.h ../include/autil.h \
../include/enemy.h ../include/family.h ../include/log.h
sasql_linux.o: sasql_linux.c ../include/longzoro/version.h \
../include/longzoro/longzoro.h ../include/longzoro/sasql.h \
../include/longzoro/version.h ../include/char_base.h \
../include/version.h ../include/correct_bug.h ../include/common.h \
/usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-32.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h \
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
/usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
/usr/include/bits/wchar.h /usr/include/gconv.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/errno.h /usr/include/bits/errno.h \
/usr/include/linux/errno.h /usr/include/asm/errno.h \
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
../include/longzoro/version.h ../include/longzoro/debug.h \
../include/skill.h ../include/util.h /usr/include/sys/time.h \
/usr/include/time.h /usr/include/bits/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/stdlib.h /usr/include/sys/types.h /usr/include/endian.h \
/usr/include/bits/endian.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
../include/title.h ../include/addressbook.h ../include/net.h \
../include/autil.h /usr/include/netinet/in.h /usr/include/stdint.h \
/usr/include/sys/socket.h /usr/include/sys/uio.h \
/usr/include/bits/uio.h /usr/include/bits/socket.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h \
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/syslimits.h \
/usr/include/limits.h /usr/include/bits/posix1_lim.h \
/usr/include/bits/local_lim.h /usr/include/linux/limits.h \
/usr/include/bits/posix2_lim.h /usr/include/bits/sockaddr.h \
/usr/include/asm/socket.h /usr/include/asm/sockios.h \
/usr/include/bits/in.h /usr/include/bits/byteswap.h \
/usr/include/signal.h /usr/include/bits/signum.h \
/usr/include/bits/siginfo.h /usr/include/bits/sigaction.h \
/usr/include/bits/sigcontext.h /usr/include/asm/sigcontext.h \
/usr/include/bits/sigstack.h /usr/include/bits/sigthread.h \
/usr/include/pthread.h /usr/include/sched.h /usr/include/bits/sched.h \
/usr/include/bits/setjmp.h ../include/link.h ../lua/lua.h \
../lua/luaconf.h ../lua/lauxlib.h ../lua/lua.h ../lua/lualib.h \
../include/configfile.h /usr/include/mysql/mysql.h \
/usr/include/mysql/mysql_version.h /usr/include/mysql/mysql_com.h \
/usr/include/mysql/mysql_time.h /usr/include/mysql/typelib.h \
/usr/include/mysql/my_alloc.h /usr/include/mysql/my_list.h \
/usr/include/string.h