summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-02 23:36:46 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-02 23:36:46 +0800
commit561b53137dbfa401b6e9954ea72bdc2112bff745 (patch)
treeb27b4271bcfde7e5019a143b87d61a4f6a292c35
parent4ef59339ce51c6378e04a7b716241bdbdd2b4e6a (diff)
downloadpttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar.gz
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar.bz2
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar.lz
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar.xz
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.tar.zst
pttbbs-561b53137dbfa401b6e9954ea72bdc2112bff745.zip
reorder Makefile, move common modules to top
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3775 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/Makefile31
1 files changed, 13 insertions, 18 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 9eb6bbc2..72da221a 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -3,24 +3,6 @@
SRCROOT= ..
.include "$(SRCROOT)/pttbbs.mk"
-# conditional configurations
-
-.if !defined(WITHOUT_BLOG) && defined(WITH_BLOG)
-CFLAGS+= -DBLOG
-LDFLAGS+= -L/usr/local/lib/mysql -lmysqlclient
-.endif
-
-.if !defined(WITHOUT_EMAILDB) && defined(WITH_EMAILDB)
-OBJS+= emaildb.o
-CFLAGS+= -DUSE_EMAILDB
-LDFLAGS+= -lsqlite3
-.endif
-
-.if !defined(WITHOUT_PFTERM) && defined(WITH_PFTERM)
-CFLAGS+= -DUSE_PFTERM
-#CFLAGS+= -DDBG_OUTRPT
-.endif
-
# common modules
PROG= mbbsd
@@ -35,8 +17,21 @@ OBJS= admin.o announce.o args.o assess.o bbs.o board.o cache.o cal.o card.o\
# optional modules
+.if !defined(WITHOUT_BLOG) && defined(WITH_BLOG)
+CFLAGS+= -DBLOG
+LDFLAGS+= -L/usr/local/lib/mysql -lmysqlclient
+.endif
+
+.if !defined(WITHOUT_EMAILDB) && defined(WITH_EMAILDB)
+OBJS+= emaildb.o
+CFLAGS+= -DUSE_EMAILDB
+LDFLAGS+= -lsqlite3
+.endif
+
.if !defined(WITHOUT_PFTERM) && defined(WITH_PFTERM)
OBJS+= pfterm.o
+CFLAGS+= -DUSE_PFTERM
+#CFLAGS+= -DDBG_OUTRPT
.else
OBJS+= screen.o
.endif