Commit 7148c264 authored by deuce's avatar deuce
Browse files

New build system!

parent a0dcb7e9
......@@ -13,36 +13,18 @@
# $Id$
#USE_CURSES := 1 #Use old curses UIFC implementation
USE_UIFC32 := 1 # Use new uifc32 implementation
UIFC = ../../uifc/
XPDEV = ../../xpdev/
SBBS_SRC = ../
NEED_UIFC := 1
NEED_CTERM := 1
include $(XPDEV)Common.gmake
include $(SBBS_SRC)Common.gmake
include $(UIFC)Common.gmake
SRC_ROOT = ../..
include $(SRC_ROOT)/build/Common.gmake
ifeq ($(os),sunos)
LDFLAGS += -lsocket -lnsl
endif
ifeq ($(os),netbsd)
CFLAGS += $(PTHREAD_CFLAGS)
LDFLAGS += $(PTHREAD_LDFLAGS)
endif
vpath %.c ..
FORCE$(EXEODIR)/umonitor: $(EXEODIR) $(OBJS) $(BUILD_DEPENDS)
CFLAGS += -I.. $(SMBLIB_CFLAGS) $(UIFC-MT_CFLAGS) $(CIOLIB-MT_CFLAGS) $(XPDEV-MT_CFLAGS)
LDFLAGS += $(SMBLIB_LDFLAGS) $(UIFC-MT_LDFLAGS) $(CIOLIB-MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(MT_LDFLAGS)
$(EXEODIR)/umonitor: $(EXEODIR) $(OBJS) $(BUILD_DEPENDS)
$(UMONITOR): $(OBJS)
@echo Linking $@
@$(CC) $(LDFLAGS) $(OBJS) -o $@
-include $(LIBODIR)/.depend
-include $(EXEODIR)/.depend
-include $(LIBODIR)/*.d
-include $(EXEODIR)/*.d
@$(CC) $(LDFLAGS) $(OBJS) -o $@ $(SMBLIB_LIBS) $(UIFC-MT_LIBS) $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS)
OBJS := $(LIBODIR)/filewrap.o \
$(LIBODIR)/chat.o \
$(LIBODIR)/sockwrap.o \
$(LIBODIR)/dirwrap.o \
$(LIBODIR)/genwrap.o \
$(LIBODIR)/sbbs_ini.o \
$(LIBODIR)/ini_file.o \
$(LIBODIR)/str_list.o \
$(LIBODIR)/scfglib1.o \
$(LIBODIR)/scfglib2.o \
$(LIBODIR)/nopen.o \
$(LIBODIR)/userdat.o \
$(LIBODIR)/ars.o \
$(LIBODIR)/dat_rec.o \
$(LIBODIR)/str_util.o \
$(LIBODIR)/crc16.o \
$(LIBODIR)/load_cfg.o \
$(LIBODIR)/date_str.o \
$(LIBODIR)/spyon.o \
$(LIBODIR)/smblib.o \
$(LIBODIR)/getstats.o \
$(LIBODIR)/getmail.o \
$(LIBODIR)/umonitor.o
OBJS := \
$(MTOBJODIR)$(DIRSEP)ars$(OFILE) \
$(MTOBJODIR)$(DIRSEP)chat$(OFILE) \
$(MTOBJODIR)$(DIRSEP)dat_rec$(OFILE) \
$(MTOBJODIR)$(DIRSEP)date_str$(OFILE) \
$(MTOBJODIR)$(DIRSEP)getmail$(OFILE) \
$(MTOBJODIR)$(DIRSEP)getstats$(OFILE) \
$(MTOBJODIR)$(DIRSEP)load_cfg$(OFILE) \
$(MTOBJODIR)$(DIRSEP)nopen$(OFILE) \
$(MTOBJODIR)$(DIRSEP)sbbs_ini$(OFILE) \
$(MTOBJODIR)$(DIRSEP)scfglib1$(OFILE) \
$(MTOBJODIR)$(DIRSEP)scfglib2$(OFILE) \
$(MTOBJODIR)$(DIRSEP)spyon$(OFILE) \
$(MTOBJODIR)$(DIRSEP)str_util$(OFILE) \
$(MTOBJODIR)$(DIRSEP)umonitor$(OFILE) \
$(MTOBJODIR)$(DIRSEP)userdat$(OFILE)
all: $(LIBODIR) $(BUILD_DEPENDS)$(EXEODIR)/umonitor
UMONITOR = $(EXEODIR)$(DIRSEP)umonitor$(EXEFILE)
all: $(MTOBJODIR) $(EXEODIR) $(UMONITOR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment