File:  [Synchronet] / sbbs / src / sbbs3 / common.gmake
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:41:24 2018 UTC (8 years, 3 months ago) by root
Branches: digitaldynamics, MAIN
CVS tags: v_315b, v_314a, HEAD
3.14a

##########
#
# 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)

SBBSDEFS	:=
-include sbbsdefs.mk		# defines $(SBBSDEFS)
MT_CFLAGS	+=	$(SBBSDEFS)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.