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
ede3a4c2
Commit
ede3a4c2
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Initial support for Borland C++ for Linux (Kylix 3)
parent
a35ededf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/GNUmakefile
+27
-7
27 additions, 7 deletions
src/xpdev/GNUmakefile
with
27 additions
and
7 deletions
src/xpdev/GNUmakefile
+
27
−
7
View file @
ede3a4c2
...
...
@@ -2,27 +2,38 @@
#########################################################################
# Makefile for cross-platform development "wrappers" test #
# For use with GNU make and GNU C Compiler #
# For use with GNU make and GNU C Compiler or Borland C++ (Kylix 3)
#
# @format.tab-size 4, @format.use-tabs true #
# #
# usage: gmake [os=target_os] #
# usage: gmake [os=target_os] [bcc=1]
#
#########################################################################
# $Id$
# Macros
DEBUG
=
1
# Comment out for release
(
non-debug
)
version
CC
=
gcc
ifdef
bcc
CC
=
bc++
CFLAGS
=
-w
-D__unix__
else
CC
=
gcc
CFLAGS
=
-Wall
-O
endif
SLASH
=
/
OFILE
=
o
CFLAGS
=
-Wall
ifndef
$(os)
os
=
$(
shell
uname
)
$(
warning
OS not specified on
command
line, setting to
'
$(
os
)
'
.
)
endif
ifdef
bcc
ODIR
:=
bcc.
$(
os
)
else
ODIR
:=
gcc.
$(
os
)
endif
DELETE
=
rm
-fv
...
...
@@ -30,11 +41,20 @@ ifeq ($(os),FreeBSD) # FreeBSD
CFLAGS
+=
-D_THREAD_SAFE
LFLAGS
:=
-pthread
else
# Linux / Other UNIX
ifdef
bcc
LFLAGS
:=
libpthread.a
else
LFLAGS
:=
-lpthread
endif
endif
ifdef
DEBUG
CFLAGS
+=
-g
-O0
-D_DEBUG
ifdef
bcc
CFLAGS
+=
-v
-y
else
CFLAGS
+=
-g
endif
CFLAGS
+=
-D_DEBUG
ODIR
:=
$(
ODIR
)
.debug
else
# RELEASE
ODIR
:=
$(
ODIR
)
.release
...
...
@@ -46,7 +66,7 @@ include targets.mk # defines all and clean targets
# Implicit C Compile Rule
$(ODIR)/%.o
:
%.c
@
echo
Compiling
$<
@$(
CC
)
$(
CFLAGS
)
-c
$<
-o
$@
@$(
CC
)
$(
CFLAGS
)
-c
$<
-o
$@
# Create output directories
$(ODIR)
:
...
...
@@ -55,5 +75,5 @@ $(ODIR):
# Executable Build Rule
$(WRAPTEST)
:
$(ODIR)/wraptest.o $(OBJS)
@
echo
Linking
$@
@$(
CC
)
$(
LFLAGS
)
$^
-o
$@
@$(
CC
)
$(
LFLAGS
)
$^
-o
$@
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