diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-21 13:44:16 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-21 13:44:16 +0800 |
commit | d715f9cde4857e9ea3f85642387a6a5ea1b732e9 (patch) | |
tree | 4ac809cfdcd1d8b60a3ed79d15024a233a08d813 /mbbsd/Makefile | |
parent | 6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a (diff) | |
download | pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar.gz pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar.bz2 pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar.lz pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar.xz pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.tar.zst pttbbs-d715f9cde4857e9ea3f85642387a6a5ea1b732e9.zip |
- Makefile: modified for static libraries and provide hints for different system configurations
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3849 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r-- | mbbsd/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile index f136d7ed..9e82285c 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -29,21 +29,27 @@ OBJS= admin.o assess.o cal.o edit.o menu.o more.o gamble.o \ .if !defined(WITHOUT_BLOG) && defined(WITH_BLOG) CFLAGS+= -DBLOG -LDFLAGS+= -L/usr/local/lib/mysql -lmysqlclient +LDFLAGS+= -L/usr/local/lib/mysql +LIBS+= -lmysqlclient .endif .if !defined(WITHOUT_EMAILDB) && defined(WITH_EMAILDB) OBJS+= emaildb.o CFLAGS+= -DUSE_EMAILDB -LDFLAGS+= -lsqlite3 +LIBS+= -lsqlite3 .endif .if !defined(WITHOUT_BBSLUA) && defined(WITH_BBSLUA) OBJS+= bbslua.o bbsluaext.o CFLAGS+= -DUSE_BBSLUA # MODIFY THESE ENVIRONMENT SETTINGS TO FIT YOUR CONFIGURATION -CFLAGS+= -I/usr/include/lua5.1 -I/usr/local/include/lua51 -LDFLAGS+=-L/usr/local/lib/lua51 -llua5.1 +CFLAGS+= -I/usr/include/lua5.1 +CFLAGS_FreeBSD += -I/usr/local/include/lua51 +LDFLAGS_FreeBSD+= -L/usr/local/lib/lua51 +# modify the lib name below to fit your configuration +# usually you'd try "-llua" instead of "-llua5.1". +LIBS+= -llua5.1 -lm +#LIBS+= -llua -lm .endif .if !defined(WITHOUT_PFTERM) && defined(WITH_PFTERM) |