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
10c5b37e
Commit
10c5b37e
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New GNU makefile.
parent
247e9257
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/GNUmakefile
+90
-0
90 additions, 0 deletions
src/sbbs3/scfg/GNUmakefile
with
90 additions
and
0 deletions
src/sbbs3/scfg/GNUmakefile
0 → 100644
+
90
−
0
View file @
10c5b37e
# GNUmakefile
#########################################################################
# Makefile for SCFG #
# For use with GNU make and GNU C Compiler #
# @format.tab-size 4, @format.use-tabs true #
# #
# Linux: gmake #
# FreeBSD: gmake os=freebsd #
# #
# Optional build targets: dlls, utils, mono, all (default) #
#########################################################################
# $Id$
# Macros
DEBUG
=
1
# Comment out for release
(
non-debug
)
version
USE_DIALOG
=
1
# Comment out for stdio
(
uifcx
)
version
CC
=
gcc
SLASH
=
/
OFILE
=
o
EXEFILE
=
ifeq
($(os),freebsd)
# FreeBSD
ODIR
:=
gcc.freebsd
else
# Linux
ODIR
:=
gcc.linux
endif
LIBDIR
:=
/usr/lib
DELETE
=
rm
-f
-v
OUTLIB
=
-o
CFLAGS
:=
-I
../../uifc
-I
/usr/local/include
-I
../
-D_THREAD_SAFE
LFLAGS
:=
-L
/usr/local/lib
ifdef
USE_DIALOG
LFLAGS
:=
$(
LFLAGS
)
-L
../../libdialog
-ldialog
-lcurses
CFLAGS
:=
$(
CFLAGS
)
-I
../../libdialog
-DUSE_DIALOG
endif
# Math library needed
LFLAGS
:=
$(
LFLAGS
)
-lm
ifdef
DEBUG
CFLAGS
:=
$(
CFLAGS
)
-g
-O0
-D_DEBUG
ODIR
:=
$(
ODIR
)
.debug
else
# RELEASE
LFLAGS
:=
$(
LFLAGS
)
ODIR
:=
$(
ODIR
)
.release
endif
include
targets.mk
# defines all targets
include
objects.mk
# defines $(OBJS)
include
headers.mk
# defines $(HEADERS)
ifdef
USE_DIALOG
# moved here from objects.mak
OBJS
:=
$(
OBJS
)
$(
ODIR
)$(
SLASH
)
uifcd.
$(
OFILE
)
endif
vpath
%.c
..
vpath
%.c
../../uifc
vpath
%.c
../../xpdev
# Implicit C Compile Rule for SCFG
$(ODIR)/%.o
:
%.c
@
echo
Compiling
$<
@$(
CC
)
$(
CFLAGS
)
-c
$(
SBBSDEFS
)
$<
-o
$@
# Create output directories
$(ODIR)
:
mkdir
$(
ODIR
)
makehelp
:
makehelp.c
$(
CC
)
makehelp.c
-o
makehelp
$(SCFGHELP)
:
$(OBJS) makehelp
./makehelp
$(
ODIR
)
# Monolithic Synchronet executable Build Rule
$(SCFG)
:
$(OBJS)
ifdef
USE_DIALOG
@$(
MAKE
)
-C
../../libdialog
endif
@
echo
Linking
$@
@$(
CC
)
$(
LFLAGS
)
-o
$@
$(
OBJS
)
include
depends.mk
# defines dependencies
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