Skip to content
Snippets Groups Projects
Commit 247e9257 authored by rswindell's avatar rswindell
Browse files

New makefile.

parent 82cd3fc9
No related branches found
No related tags found
No related merge requests found
# Makefile.bor
#########################################################################
# Makefile for Synchronet BBS Configuration Utility (SCFG) #
# For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32 #
# @format.tab-size 4 #
# #
# usage: make -f makefile.bor #
#########################################################################
# $Id$
# Macros
DEBUG = 1 # Comment out for release (non-debug) version
CC = bcc32
LD = ilink32
SLASH = \\
OFILE = obj
EXEFILE = .exe
ODIR = bcc.win32 # Executable output directory
CFLAGS = -M -I..;..\..\uifc;..\..\xpdev -g1
DELETE = echo y | del
.path.c = .;..;..\..\uifc;..\..\xpdev
# Optional compile flags (disable banner, warnings and such)
CFLAGS = $(CFLAGS) -q -d -H -X- -w-csu -w-pch -w-ccc -w-rch -w-par -w-pro
# Debug or release build?
!ifdef DEBUG
CFLAGS = $(CFLAGS) -v -Od -D_DEBUG
LFLAGS = $(LFLAGS) -v
ODIR = $(ODIR).debug
!else
ODIR = $(ODIR).release
!endif
# Cross platform/compiler definitions
!include targets.mk # defines all targets
!include objects.mk # defines $(OBJS)
!include headers.mk # defines $(HEADERS)
OBJS = $(OBJS) $(ODIR)\uifc.$(OFILE)
# Implicit C Compile Rule for SCFG
.c.$(OFILE):
@$(CC) $(CFLAGS) -n$(ODIR) -c $<
# Create output directories if they don't exist
$(ODIR):
@if not exist $(ODIR) mkdir $(ODIR)
makehelp.exe: makehelp.c
$(CC) $?
$(SCFGHELP): $(OBJS) makehelp.exe
makehelp $(ODIR)
# Monolithic SCFG executable Build Rule
$(SCFG): $(OBJS)
@echo Linking $@
@$(CC) $(CFLAGS) -e$@ $**
!include depends.mk # defines dependencies
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment