Skip to content
Snippets Groups Projects
Commit e1caf587 authored by deuce's avatar deuce
Browse files

New build system

parent 70ae8900
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,8 @@
# $Id$
#USE_DIALOG = 1 # Dialog vesrion of UIFC
#USE_CURSES = 1 # Curses version of UIFC
#USE_FLTK = 1 # Windowed version of UIFC
USE_UIFC32 := 1 # New 32-bit version of UIFC
UIFC_SRC = ../../uifc/
XPDEV = ../../xpdev/
NEED_UIFC := 1
include $(XPDEV)/Common.gmake
include $(UIFC_SRC)/Common.gmake
SRC_ROOT = ../..
include $(SRC_ROOT)/build/Common.gmake
CFLAGS += -I../
......@@ -34,18 +26,9 @@ ifeq ($(os),sunos)
LDFLAGS += -lsocket -lnsl
endif
ifeq ($(os),netbsd)
CFLAGS += $(PTHREAD_CFLAGS)
LDFLAGS += $(PTHREAD_LDFLAGS)
endif
CFLAGS += $(UIFC-MT_CFLAGS) $(CIOLIB-MT_CFLAGS) $(XPDEV-MT_CFLAGS) $(SMBLIB_CFLAGS)
LDFLAGS += $(UIFC-MT_LDFLAGS) $(CIOLIB-MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(SMBLIB_LDFLAGS)
$(SBBSINST): $(OBJS)
ifdef USE_DIALOG
$(QUIET)$(MAKE) --no-print-directory -C ../../libdialog
endif
$(QUIET)echo Linking $@
$(QUIET)$(CC) -o $@ $(OBJS) $(LDFLAGS)
# Auto-dependency files (should go in output dir, but gcc v2.9.5 puts in cwd)
-include ./*.d
-include $(ODIR)/*.d
$(QUIET)$(CC) -o $@ $(OBJS) $(LDFLAGS) $(UIFC-MT_LIBS) $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS)
......@@ -4,13 +4,8 @@
# $Id$
# LIBODIR, SBBSLIBODIR, SLASH, and OFILE must be pre-defined
# MTOBJODIR, DIRSEP, and OFILE must be pre-defined
OBJS = $(LIBODIR)$(SLASH)sbbsinst.$(OFILE)\
$(LIBODIR)$(SLASH)sockwrap.$(OFILE)\
$(LIBODIR)$(SLASH)genwrap.$(OFILE)\
$(LIBODIR)$(SLASH)dirwrap.$(OFILE)\
$(LIBODIR)$(SLASH)filewrap.$(OFILE)\
$(LIBODIR)$(SLASH)httpio.$(OFILE)\
$(LIBODIR)$(SLASH)uifcx.$(OFILE)
OBJS = $(MTOBJODIR)$(DIRSEP)sbbsinst$(OFILE)\
$(MTOBJODIR)$(DIRSEP)httpio$(OFILE)
......@@ -6,8 +6,8 @@
# ODIR, SLASH, LIBFILE, EXEFILE, and DELETE must be pre-defined
SBBSINST = $(EXEODIR)$(SLASH)sbbsinst$(EXEFILE)
SBBSINST = $(EXEODIR)$(DIRSEP)sbbsinst$(EXEFILE)
all: $(EXEODIR) \
$(LIBODIR) \
$(MTOBJODIR) \
$(SBBSINST)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment