Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
80186d58
Commit
80186d58
authored
Oct 21, 2011
by
deuce
Browse files
Update for new 3rd party location.
You will need to do a clean build before building actoss this change.
parent
136ff539
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
48 deletions
+16
-48
src/build/Common.gmake
src/build/Common.gmake
+10
-4
src/build/rules.mk
src/build/rules.mk
+1
-0
src/sbbs3/Common.gmake
src/sbbs3/Common.gmake
+0
-26
src/sbbs3/GNUmakefile
src/sbbs3/GNUmakefile
+5
-18
No files found.
src/build/Common.gmake
View file @
80186d58
...
...
@@ -41,6 +41,7 @@
# #
# Common Build Macros REQUIRED: #
# SRC_ROOT - *MUST* be set to the src dir #
# 3RDP_ROOT - If not set, defaults to $(SRC_ROOT)/../3rdp #
# #
# Common Build Macros Used: #
# DEBUG - Create a debug build #
...
...
@@ -360,7 +361,8 @@ XPDEV_SRC := $(SRC_ROOT)$(DIRSEP)xpdev
CIOLIB_SRC := $(SRC_ROOT)$(DIRSEP)conio
SMBLIB_SRC := $(SRC_ROOT)$(DIRSEP)smblib
UIFC_SRC := $(SRC_ROOT)$(DIRSEP)uifc
JS_SRC := $(SRC_ROOT)$(DIRSEP)js
3RDP_ROOT ?= $(SRC_ROOT)$(DIRSEP)..$(DIRSEP)3rdp
3RDP_BUILD := $(3RDP_ROOT)$(DIRSEP)build
# SDL ciolib enabled by default for the moment.
ifndef WITHOUT_SDL
...
...
@@ -378,8 +380,8 @@ endif
-include $(CIOLIB_SRC)$(DIRSEP)Common.gmake
-include $(UIFC_SRC)$(DIRSEP)Common.make
-include $(UIFC_SRC)$(DIRSEP)Common.gmake
-include $(
JS_SRC
)$(DIRSEP)Common.make
-include $(
JS_SRC
)$(DIRSEP)Common.gmake
-include $(
3RDP_BUILD
)$(DIRSEP)Common.make
-include $(
3RDP_BUILD
)$(DIRSEP)Common.gmake
ifdef DEBUG
CFLAGS += -ggdb
...
...
@@ -459,4 +461,8 @@ uifc-mt:
$(JS_LIB): $(JS_DEPS)
js:
$(MAKE) -C $(JS_SRC) lib
$(MAKE) -C $(3RDPBUILDDIR) jslib
$(CRYPT_LIB): $(CRYPT_DEPS)
cl:
$(MAKE) -C $(3RDPBUILDDIR) cryptlib
src/build/rules.mk
View file @
80186d58
...
...
@@ -16,6 +16,7 @@ $(LIBODIR):
$(EXEODIR)
:
$(QUIET)$(IFNOTEXIST)
mkdir
$(EXEODIR)
clean
:
clean
:
@
echo
Deleting
$(OBJODIR)$(DIRSEP)
-
$(QUIET)$(DELETE)
$(OBJODIR)$(DIRSEP)
*
...
...
src/sbbs3/Common.gmake
View file @
80186d58
...
...
@@ -3,37 +3,11 @@
# You really should set SBBS_SRC before calling this.
#
# Available options:
# NEED_JAVASCRIPT = Set flags for use with JS
SBBS_SRC ?= $(XPDEV)/../sbbs3
CFLAGS += -I$(SBBS_SRC)
JS_CFLAGS += -DJAVASCRIPT
ifdef JSINCLUDE
JS_CFLAGS += -I$(JSINCLUDE)
else
JS_CFLAGS += -I$(SBBS_SRC)/../../include/mozilla/js
endif
ifndef JSLIBDIR
JSLIBDIR := $(SBBS_SRC)/../../lib/mozilla/js/$(machine).$(BUILD)
endif
ifndef JSLIB
JSLIB := js
endif
ifndef NSPRDIR
NSPRDIR := $(SBBS_SRC)/../../lib/mozilla/nspr/$(machine).$(BUILD)
endif
JS_LDFLAGS += -L$(JSLIBDIR) -l$(JSLIB)
#The following is needed for nspr support on Linux
ifeq ($(os),linux)
JS_LDFLAGS += -ldl
endif
JS_LDFLAGS += -L$(NSPRDIR) -lnspr4
ifdef NEED_JAVASCRIPT
CFLAGS += $(JS_CFLAGS)
LDFLAGS += $(JS_LDFLAGS)
endif
vpath %.c $(SBBS_SRC)
vpath %.cpp $(SBBS_SRC)
...
...
src/sbbs3/GNUmakefile
View file @
80186d58
...
...
@@ -37,8 +37,6 @@ ifeq ($(os),qnx)
LDFLAGS
+=
-lsocket
endif
SBBS_LIBS
+=
-lcl
ifdef
PREFIX
CFLAGS
+=
-DPREFIX
=
$(PREFIX)
endif
...
...
@@ -59,17 +57,6 @@ ifeq ($(os),linux)
endif
endif
ifdef
CRYPTLIBINCLUDE
CFLAGS
+=
-I
$(CRYPTLIBINCLUDE)
else
CFLAGS
+=
-I
$(SRC_ROOT)
/../include/cryptlib
endif
ifndef
CRYPTLIBDIR
CRYPTLIBDIR
:=
$(SRC_ROOT)
/../lib/cryptlib/
$(machine)
.release
endif
LDFLAGS
+=
-L
$(CRYPTLIBDIR)
include
sbbsdefs.mk
MT_CFLAGS
+=
$(SBBSDEFS)
...
...
@@ -106,21 +93,21 @@ else
endif
endif
CFLAGS
+=
$
(
UIFC-MT_CFLAGS
)
$
(
XPDEV-MT_CFLAGS
)
$(SMBLIB_CFLAGS)
$
(
CIOLIB-MT_CFLAGS
)
$(JS_CFLAGS)
CFLAGS
+=
$
(
UIFC-MT_CFLAGS
)
$
(
XPDEV-MT_CFLAGS
)
$(SMBLIB_CFLAGS)
$
(
CIOLIB-MT_CFLAGS
)
$(JS_CFLAGS)
$(CRYPT_CFLAGS)
CFLAGS
+=
-I
../comio
vpath
%.c
../comio
OBJS
+=
$(MTOBJODIR)$(DIRSEP)
comio_nix
$(OFILE)
LDFLAGS
+=
$
(
UIFC-MT_LDFLAGS
)
$
(
XPDEV-MT_LDFLAGS
)
$(SMBLIB_LDFLAGS)
$
(
CIOLIB-MT_LDFLAGS
)
$(JS_LDFLAGS)
LDFLAGS
+=
$
(
UIFC-MT_LDFLAGS
)
$
(
XPDEV-MT_LDFLAGS
)
$(SMBLIB_LDFLAGS)
$
(
CIOLIB-MT_LDFLAGS
)
$(JS_LDFLAGS)
$(CRYPT_LDFLAGS)
# Monolithic Synchronet executable Build Rule
$(SBBSMONO)
:
$(MONO_OBJS) $(OBJS)
@
echo
Linking
$@
$(QUIET)$(CXX)
-o
$@
$(LDFLAGS)
$(MT_LDFLAGS)
$(MONO_OBJS)
$(OBJS)
$(SBBS_LIBS)
$(SMBLIB_LIBS)
$
(
XPDEV-MT_LIBS
)
$(JS_LIBS)
$(QUIET)$(CXX)
-o
$@
$(LDFLAGS)
$(MT_LDFLAGS)
$(MONO_OBJS)
$(OBJS)
$(SBBS_LIBS)
$(SMBLIB_LIBS)
$
(
XPDEV-MT_LIBS
)
$(JS_LIBS)
$(CRYPT_LIBS)
# Synchronet BBS library Link Rule
$(SBBS)
:
$(OBJS) $(LIBS)
@
echo
Linking
$@
$(QUIET)$(MKSHPPLIB)
$(LDFLAGS)
-o
$@
$(OBJS)
$(SBBS_LIBS)
$(LIBS)
$(SHLIBOPTS)
$(QUIET)$(MKSHPPLIB)
$(LDFLAGS)
-o
$@
$(OBJS)
$(SBBS_LIBS)
$(LIBS)
$(SHLIBOPTS)
$(CRYPT_LIBS)
# FTP Server Link Rule
$(FTPSRVR)
:
$(MTOBJODIR)/ftpsrvr.o
...
...
@@ -153,7 +140,7 @@ $(BAJA): $(BAJA_OBJS)
$(QUIET)$(CC)
$(UTIL_LDFLAGS)
-o
$@
$(BAJA_OBJS)
$(SMBLIB_LIBS)
$(XPDEV_LIBS)
# UnBaja Utility
$(UNBAJA)
:
$(OBJODIR) $(EXEODIR)
$(UNBAJA_OBJS)
$(UNBAJA)
:
$(UNBAJA_OBJS) |
$(OBJODIR) $(EXEODIR)
@
echo
Linking
$@
$(QUIET)$(CC)
$(UTIL_LDFLAGS)
-o
$@
$(UNBAJA_OBJS)
$(XPDEV_LIBS)
$(UTIL_LIBS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment