Skip to content
Snippets Groups Projects
Commit 94767c33 authored by rswindell's avatar rswindell
Browse files

Added support for building with FLTK (GUI library).

parent bfc94eae
No related branches found
No related tags found
No related merge requests found
# Makefile.bor
# Makefile
#########################################################################
# Makefile for Synchronet BBS Configuration Utility (SCFG) #
......@@ -10,6 +10,7 @@
# Macros
#DEBUG = 1 # Comment out for release (non-debug) version
USE_FLTK= 1
CC = bcc32
LD = ilink32
SLASH = \\
......@@ -18,10 +19,13 @@ EXEFILE = .exe
ODIR = bcc.win32 # Executable output directory
XPDEV = ..\..\xpdev
UIFC = ..\..\uifc
CFLAGS = -M -I..;$(UIFC);$(XPDEV)
LIB = ..\..\..\lib
INCLUDE = ..\..\..\include
CFLAGS = -M -I..;$(UIFC);$(XPDEV)
DELETE = echo y | del
.path.c = .;..;$(UIFC);$(XPDEV)
.path.cpp = $(UIFC)
# Enable auto-dependency checking
.autodepend
......@@ -46,10 +50,18 @@ ODIR = $(ODIR).release
OBJS = $(OBJS) $(ODIR)\uifc.$(OFILE)
!ifdef USE_FLTK
CFLAGS = $(CFLAGS) -DUSE_FLTK -I$(INCLUDE)\fltk
OBJS = $(OBJS) $(ODIR)\uifcfltk.$(OFILE) $(LIB)/fltk/win32/fltk.lib
!endif
# Implicit C Compile Rule for SCFG
.c.$(OFILE):
@$(CC) $(CFLAGS) -n$(ODIR) -c $<
.cpp.$(OFILE):
@$(CC) $(CFLAGS) -n$(ODIR) -c $<
# Create output directories if they don't exist
$(ODIR):
@if not exist $(ODIR) mkdir $(ODIR)
......@@ -61,6 +73,6 @@ $(SCFGHELP): $(OBJS) $(MAKEHELP)
@$(MAKEHELP) $(ODIR)
# Monolithic SCFG executable Build Rule
$(SCFG): $(OBJS)
$(SCFG): $(OBJS)
@echo Linking $@
@$(CC) $(CFLAGS) -e$@ $**
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