Makefile tweaks for sunos and macos

This commit is contained in:
Andrew Pamment 2018-10-12 15:58:29 +10:00
parent 40c52836f9
commit d4329eb287
9 changed files with 23 additions and 10 deletions

View File

@ -42,7 +42,7 @@ ${CDK}:
${UUID}: ${UUID}:
rm ${DEPSDIR}/libuuid/ltmain.sh ${DEPSDIR}/libuuid/libtool || true rm ${DEPSDIR}/libuuid/ltmain.sh ${DEPSDIR}/libuuid/libtool || true
cd ${DEPSDIR}/libuuid/ && libtoolize cd ${DEPSDIR}/libuuid/ && ${LIBTOOLIZE}
cd ${DEPSDIR}/libuuid/ && autoreconf cd ${DEPSDIR}/libuuid/ && autoreconf
cd ${DEPSDIR}/libuuid/ && ./configure cd ${DEPSDIR}/libuuid/ && ./configure
cd ${DEPSDIR}/libuuid/ && ${MAKE} CC=${CC} 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 \ 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 \ 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 \ lua_glue.o strings.o bluewave.o hashmap/hashmap.o menus.o \
nodelist.o blog.o util.o stralloc/stralloc.o strlcpy/strlcpy.o \ nodelist.o blog.o util.o stralloc/stralloc.o ${EXTRAOBJS}
strlcpy/strlcat.o
WWWOBJS:= ../deps/aha/aha.o ../deps/hashids/hashids.o www.o www_email.o \ 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} www_msgs.o www_last10.o www_blog.o www_files.o ${OBJS}

View File

@ -2,6 +2,8 @@ CC:= cc
CFLAGS:= -std=gnu99 -I/usr/local/include CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
LIBTOOLIZE:= libtoolize
DEPS_LUA_TARGET:= freebsd DEPS_LUA_TARGET:= freebsd
DEPS_JAMLIB_MAKEFILE:= Makefile.linux DEPS_JAMLIB_MAKEFILE:= Makefile.linux

View File

@ -1,6 +1,9 @@
CC:= cc CC:= cc
CFLAGS:= -std=gnu99 -I/usr/local/include CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -lmosquitto 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_LUA_TARGET:= linux
DEPS_JAMLIB_MAKEFILE:= Makefile.linux DEPS_JAMLIB_MAKEFILE:= Makefile.linux

View File

@ -2,6 +2,8 @@ CC:= cc
CFLAGS:= -std=gnu99 -I/usr/local/include CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -R/usr/pkg/lib -L/usr/pkg/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto LIBS:= -R/usr/pkg/lib -L/usr/pkg/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
LIBTOOLIZE:= libtoolize
DEPS_LUA_TARGET:= bsd DEPS_LUA_TARGET:= bsd
DEPS_JAMLIB_MAKEFILE:= Makefile.linux DEPS_JAMLIB_MAKEFILE:= Makefile.linux

View File

@ -2,6 +2,8 @@ CC:= egcc
CFLAGS:= -std=gnu99 -I/usr/local/include CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto LIBS:= -L/usr/local/lib -lsqlite3 -lutil -lm -lssl -lcrypto -lssh -liconv -lmosquitto
LIBTOOLIZE:= libtoolize
DEPS_LUA_TARGET:= bsd DEPS_LUA_TARGET:= bsd
DEPS_JAMLIB_MAKEFILE:= Makefile.linux DEPS_JAMLIB_MAKEFILE:= Makefile.linux

View File

@ -2,6 +2,8 @@ CC:= cc
CFLAGS:= -std=gnu99 -I/opt/local/include CFLAGS:= -std=gnu99 -I/opt/local/include
LIBS:= -L/opt/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -liconv -lmosquitto LIBS:= -L/opt/local/lib -lsqlite3 -lutil -lm -ldl -lssl -lcrypto -lssh -liconv -lmosquitto
LIBTOOLIZE:= glibtoolize
DEPS_LUA_TARGET:= macosx DEPS_LUA_TARGET:= macosx
DEPS_JAMLIB_MAKEFILE:= Makefile.linux DEPS_JAMLIB_MAKEFILE:= Makefile.linux

View File

@ -1,6 +1,9 @@
CC:= gcc CC:= gcc
CFLAGS:= -std=gnu99 -I/usr/local/include CFLAGS:= -std=gnu99 -I/usr/local/include
LIBS:= -L/usr/local/lib -lsqlite3 -lm -ldl -lssl -lcrypto -lssh -lmosquitto -lnsl -lsocket 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_LUA_TARGET:= solaris
DEPS_JAMLIB_MAKEFILE:= Makefile.sunos DEPS_JAMLIB_MAKEFILE:= Makefile.sunos

View File

@ -7,14 +7,14 @@ help:
all: all:
mkdir -p obj mkdir -p obj
gmake -C cmnllib -f Makefile.linux ${MAKE} -C cmnllib -f Makefile.linux
gmake -C oslib_linux ${MAKE} -C oslib_linux
gmake -f Makefile.linux ${MAKE} -f Makefile.linux
clean: clean:
gmake -C cmnllib -f Makefile.linux clean ${MAKE} -C cmnllib -f Makefile.linux clean
gmake -C oslib_linux clean ${MAKE} -C oslib_linux clean
gmake -f Makefile.linux clean ${MAKE} -f Makefile.linux clean
freebsd: all freebsd: all

View File

@ -28,7 +28,7 @@ endif
ifeq ($(OS), Darwin) ifeq ($(OS), Darwin)
CC=cc CC=cc
CFLAGS=-I/opt/local/include CFLAGS=-I/opt/local/include
LDFLAGS= LDFLAGS=-L/opt/local/lib
endif endif