Makefile tweaks for sunos and macos
This commit is contained in:
parent
40c52836f9
commit
d4329eb287
@ -42,7 +42,7 @@ ${CDK}:
|
||||
|
||||
${UUID}:
|
||||
rm ${DEPSDIR}/libuuid/ltmain.sh ${DEPSDIR}/libuuid/libtool || true
|
||||
cd ${DEPSDIR}/libuuid/ && libtoolize
|
||||
cd ${DEPSDIR}/libuuid/ && ${LIBTOOLIZE}
|
||||
cd ${DEPSDIR}/libuuid/ && autoreconf
|
||||
cd ${DEPSDIR}/libuuid/ && ./configure
|
||||
cd ${DEPSDIR}/libuuid/ && ${MAKE} CC=${CC}
|
||||
@ -54,8 +54,7 @@ HDRS:= bbs.h
|
||||
OBJS:= inih/ini.o bbs.o main.o users.o main_menu.o mail_menu.o \
|
||||
doors.o bbs_list.o chat_system.o email.o files.o settings.o \
|
||||
lua_glue.o strings.o bluewave.o hashmap/hashmap.o menus.o \
|
||||
nodelist.o blog.o util.o stralloc/stralloc.o strlcpy/strlcpy.o \
|
||||
strlcpy/strlcat.o
|
||||
nodelist.o blog.o util.o stralloc/stralloc.o ${EXTRAOBJS}
|
||||
|
||||
WWWOBJS:= ../deps/aha/aha.o ../deps/hashids/hashids.o www.o www_email.o \
|
||||
www_msgs.o www_last10.o www_blog.o www_files.o ${OBJS}
|
||||
|
@ -2,6 +2,8 @@ CC:= cc
|
||||
CFLAGS:= -std=gnu99 -I/usr/local/include
|
||||
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
|
||||
|
||||
LIBTOOLIZE:= libtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= freebsd
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
CC:= cc
|
||||
CFLAGS:= -std=gnu99 -I/usr/local/include
|
||||
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -lmosquitto
|
||||
EXTRAOBJS:= strlcpy/strlcpy.o strlcpy/strlcat.o
|
||||
|
||||
LIBTOOLIZE:= libtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= linux
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||
|
@ -2,6 +2,8 @@ CC:= cc
|
||||
CFLAGS:= -std=gnu99 -I/usr/local/include
|
||||
LIBS:= -R/usr/pkg/lib -L/usr/pkg/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
|
||||
|
||||
LIBTOOLIZE:= libtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= bsd
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||
|
||||
|
@ -2,6 +2,8 @@ CC:= egcc
|
||||
CFLAGS:= -std=gnu99 -I/usr/local/include
|
||||
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
|
||||
|
||||
LIBTOOLIZE:= libtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= bsd
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||
|
||||
|
@ -2,6 +2,8 @@ CC:= cc
|
||||
CFLAGS:= -std=gnu99 -I/opt/local/include
|
||||
LIBS:= -L/opt/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -liconv -lmosquitto
|
||||
|
||||
LIBTOOLIZE:= glibtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= macosx
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.linux
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
CC:= gcc
|
||||
CFLAGS:= -std=gnu99 -I/usr/local/include
|
||||
LIBS:= -L/usr/local/lib -lsqlite3 -lm -ldl -lssl -lcrypto -lssh -lmosquitto -lnsl -lsocket
|
||||
EXTRAOBJS:= os/sunos.o
|
||||
|
||||
LIBTOOLIZE:= libtoolize
|
||||
|
||||
DEPS_LUA_TARGET:= solaris
|
||||
DEPS_JAMLIB_MAKEFILE:= Makefile.sunos
|
||||
|
@ -7,14 +7,14 @@ help:
|
||||
|
||||
all:
|
||||
mkdir -p obj
|
||||
gmake -C cmnllib -f Makefile.linux
|
||||
gmake -C oslib_linux
|
||||
gmake -f Makefile.linux
|
||||
${MAKE} -C cmnllib -f Makefile.linux
|
||||
${MAKE} -C oslib_linux
|
||||
${MAKE} -f Makefile.linux
|
||||
|
||||
clean:
|
||||
gmake -C cmnllib -f Makefile.linux clean
|
||||
gmake -C oslib_linux clean
|
||||
gmake -f Makefile.linux clean
|
||||
${MAKE} -C cmnllib -f Makefile.linux clean
|
||||
${MAKE} -C oslib_linux clean
|
||||
${MAKE} -f Makefile.linux clean
|
||||
|
||||
|
||||
freebsd: all
|
||||
|
@ -28,7 +28,7 @@ endif
|
||||
ifeq ($(OS), Darwin)
|
||||
CC=cc
|
||||
CFLAGS=-I/opt/local/include
|
||||
LDFLAGS=
|
||||
LDFLAGS=-L/opt/local/lib
|
||||
endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user