Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
25bf73b8
Commit
25bf73b8
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New Borland Makefile.
A slight improvement over Makefile.bor, but still needs work.
parent
94fbeca2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/Makefile
+128
-0
128 additions, 0 deletions
src/sbbs3/Makefile
with
128 additions
and
0 deletions
src/sbbs3/Makefile
0 → 100644
+
128
−
0
View file @
25bf73b8
# Makefile
#########################################################################
# Makefile for Synchronet BBS #
# For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32 #
# @format.tab-size 4 #
# #
# usage: make #
# #
# Optional build targets: dlls, utils, mono, all (default) #
#########################################################################
# $Id$
# Macros
DEBUG
=
1
# Comment out for release
(
non-debug
)
version
JS
=
1
# Comment out for non-JavaScript
(
v3.00
)
build
CC
=
bcc32
LD
=
ilink32
SLASH
=
\\
OFILE
=
obj
LIBFILE
=
.dll
EXEFILE
=
.exe
LIBODIR
=
bcc.win32.dll
# Library output directory
EXEODIR
=
bcc.win32.exe
# Executable output directory
CFLAGS
=
-M
-g1
LFLAGS
=
-m
-s
-c
-Tpd
-Gi
-I
$(
LIBODIR
)
DELETE
=
echo
y | del
# Optional compile flags (disable banner, warnings and such)
CFLAGS
=
$(
CFLAGS
)
-q
-d
-H
-X-
-w-csu
-w-pch
-w-ccc
-w-rch
-w-par
# Debug or release build?
!
ifdef
DEBUG
CFLAGS
=
$(
CFLAGS
)
-v
-Od
-D_DEBUG
LFLAGS
=
$(
LFLAGS
)
-v
LIBODIR
=
$(
LIBODIR
)
.debug
EXEODIR
=
$(
EXEODIR
)
.debug
!
else
LIBODIR
=
$(
LIBODIR
)
.release
EXEODIR
=
$(
EXEODIR
)
.release
!
endif
# JavaScript Support
!
ifdef
JS
CFLAGS
=
$(
CFLAGS
)
-DJAVASCRIPT
-I
../mozilla/js/src
LIBS
=
..
\m
ozilla
\j
s
\s
rc
\D
ebug
\j
s32omf.lib
!
endif
# Cross platform/compiler definitions
!
include
targets.mak
# defines all targets
!
include
objects.mak
# defines $(OBJS)
!
include
headers.mak
# defines $(HEADERS)
!
include
sbbsdefs.mak
# defines $(SBBSDEFS)
SBBSLIB
=
$(
LIBODIR
)
\s
bbs.lib
# Implicit C Compile Rule for SBBS.DLL
{.}.c.$(OFILE)
:
@$(
CC
)
$(
CFLAGS
)
-WD
-WM
-n
$(
LIBODIR
)
-c
$(
SBBSDEFS
)
$<
# Implicit C++ Compile Rule for SBBS.DLL
{.}.cpp.$(OFILE)
:
@$(
CC
)
$(
CFLAGS
)
-WD
-WM
-n
$(
LIBODIR
)
-c
$(
SBBSDEFS
)
$<
# Create output directories if they don't exist
$(LIBODIR)
:
@
if
not exist
$(
LIBODIR
)
mkdir
$(
LIBODIR
)
$(EXEODIR)
:
@
if
not exist
$(
EXEODIR
)
mkdir
$(
EXEODIR
)
# Monolithic Synchronet executable Build Rule
$(SBBSMONO)
:
sbbscon.c $(OBJS) $(LIBODIR)
\v
er.$(OFILE) $(LIBODIR)
\f
tpsrvr.$(OFILE)
\
$(LIBODIR)
\m
ailsrvr.$(OFILE) $(LIBODIR)
\m
xlookup.$(OFILE) $(LIBODIR)
\m
ime.$(OFILE)
\
$(LIBODIR)
\s
ervices.$(OFILE)
@$(
CC
)
$(
CFLAGS
)
-WM
-e
$(
SBBSMONO
)
$*
*
$(
LIBS
)
# SBBS DLL Link Rule
$(SBBS)
:
$(OBJS) $(LIBODIR)
\v
er.$(OFILE)
@echo
Linking
$<
...
@$(LD)
$(LFLAGS)
c0d32.obj
$(LIBS)
$(OBJS)
$(LIBODIR)\ver.$(OFILE),
$*,
$*,
\
import32.lib
cw32mt.lib
ws2_32.lib
# Mail Server DLL Link Rule
$(MAILSRVR)
:
mailsrvr.c mxlookup.c mime.c crc32.c $(SBBSLIB)
@echo
Creating
$@
@$(CC)
$(CFLAGS)
-WD
-WM
-lGi
-n$(LIBODIR)
-DMAILSRVR_EXPORTS
-DSMBDLL
$**
$(LIBS)
# FTP Server DLL Link Rule
$(FTPSRVR)
:
ftpsrvr.c $(SBBSLIB)
@echo
Creating
$@
@$(CC)
$(CFLAGS)
-WD
-WM
-lGi
-n$(LIBODIR)
-DFTPSRVR_EXPORTS
$**
$(LIBS)
# Services DLL Link Rule
$(SERVICES)
:
services.c $(SBBSLIB)
@echo
Creating
$@
@$(CC)
$(CFLAGS)
-WD
-WM
-lGi
-n$(LIBODIR)
-DSERVICES_EXPORTS
$**
$(LIBS)
# Synchronet Console Build Rule
$(SBBSCON)
:
sbbscon.c $(SBBSLIB)
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
# Baja Utility
$(BAJA)
:
baja.c ars.c crc32.c
@
echo
Creating
$@
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
# Node Utility
$(NODE)
:
node.c
@
echo
Creating
$@
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
# FIXSMB Utility
$(FIXSMB)
:
fixsmb.c smblib.c smbwrap.c
@
echo
Creating
$@
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
# CHKSMB Utility
$(CHKSMB)
:
chksmb.c smblib.c smbwrap.c
@
echo
Creating
$@
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
# SMB Utility
$(SMBUTIL)
:
smbutil.c smblib.c smbwrap.c smbtxt.c crc32.c lzh.c
@
echo
Creating
$@
@$(
CC
)
$(
CFLAGS
)
-n
$(
EXEODIR
)
$*
*
!
include
depends.mak
#
defines
dependencies
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment