diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-12 11:50:50 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-12 11:50:50 +0800 |
commit | 7bc0360b54705e8dff50ef9f048c7fde2fa5822d (patch) | |
tree | d24e130e28775168169d132ba7bb567acebe9bc0 /innbbsd/Makefile | |
parent | 057c5139c7cfa51ab0cbba3619e90e799da2daa5 (diff) | |
download | pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar.gz pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar.bz2 pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar.lz pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar.xz pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.tar.zst pttbbs-7bc0360b54705e8dff50ef9f048c7fde2fa5822d.zip |
Clean up makefiles
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4346 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/Makefile')
-rw-r--r-- | innbbsd/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile index 66d0741e..3dcb2175 100644 --- a/innbbsd/Makefile +++ b/innbbsd/Makefile @@ -5,22 +5,20 @@ SRCROOT= .. VERSION= 0.50-pttpatch ADMINUSER?= root@your.domain.name +.if "$(OS)" == "FreeBSD" # FreeBSD innbbsd肂惠把计 -inn_CFLAGS_FreeBSD= -DBSD44 -DMMAP -DGETRUSAGE -inn_LDFLAGS_FreeBSD= -L/usr/local/lib -liconv - +inn_CFLAGS= -DBSD44 -DMMAP -DGETRUSAGE +inn_LDFLAGS= -L/usr/local/lib -liconv +.else # Linux innbbsd肂惠把计 -inn_CFLAGS_Linux= -DLINUX -DGETRUSAGE -inn_LDFLAGS_Linux= - -# Solarisinnbbsd肂惠把计 -inn_CFLAGS_Solaris= -DMMAP -DSolaris -DSYSV -I/usr/local/include/ -inn_LDFLAGS_Solaris= -L/usr/local/lib -liconv -lsocket -lnsl -lkstat +inn_CFLAGS= -DLINUX -DGETRUSAGE +inn_LDFLAGS= +.endif CFLAGS+= -DVERSION=\"${VERSION}\" \ -DADMINUSER=\"${ADMINUSER}\" \ -DMapleBBS -DDBZDEBUG -I. \ - ${inn_CFLAGS_${OSTYPE}} -DHMM_USE_ANTI_SPAM + ${inn_CFLAGS} -DHMM_USE_ANTI_SPAM LDFLAGS+= ${inn_LDFLAGS_${OSTYPE}} @@ -73,7 +71,7 @@ clean: rm -f *.o ${PROGS} core *.core reset: - cd ../util/; ${MAKE} clean shmctl + cd $(SRCROOT)/util/; ${MAKE} clean shmctl ${MAKE} clean ; ${MAKE} ; ${MAKE} install killall innbbsd cd ~; nohup innd/innbbsd 7777 & |