Common.gmake 524 Bytes
Newer Older
1 2 3 4 5 6
##########
#
# You really should set SBBS_SRC before calling this.
#
# Available options:

7 8
SBBS_SRC	?=	$(SRC_ROOT)/sbbs3
SBBS_CFLAGS	+=	-I$(SBBS_SRC)
9 10

SBBSDEFS	:=
11
-include $(SBBS_SRC)/sbbsdefs.mk		# defines $(SBBSDEFS)
12 13 14 15 16
SBBS_CFLAGS	+=	$(SBBSDEFS)
SBBS_LDFLAGS	+=	-L$(SBBS_SRC)/$(LIBODIR)

SBBSLIBS	+=	-lsbbs

17 18 19 20 21 22 23
ifdef SBBSDIR
LD_RUN_PATH	:=	$(SBBSDIR)/exec:$(SBBS_SRC)/$(LIBODIR)
else
LD_RUN_PATH	:=	$(SBBS_SRC)/$(LIBODIR)
endif
export LD_RUN_PATH

24 25 26
$(SBBS):
	$(MAKE) -C $(SBBS_SRC) $(LIBODIR)$(DIRSEP)$(LIBPREFIX)sbbs$(SOFILE)