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
6357a42e
Commit
6357a42e
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Deuce's mod to use uname to automatically detect FreeBSD build.
parent
7619f608
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/GNUmakefile
+10
-5
10 additions, 5 deletions
src/sbbs3/GNUmakefile
with
10 additions
and
5 deletions
src/sbbs3/GNUmakefile
+
10
−
5
View file @
6357a42e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# @format.tab-size 4, @format.use-tabs true #
# @format.tab-size 4, @format.use-tabs true #
# #
# #
# Linux: gmake #
# Linux: gmake #
# FreeBSD: gmake os=
f
ree
bsd
#
# FreeBSD: gmake os=
F
ree
BSD
#
# #
# #
# Optional build targets: dlls, utils, mono, all (default) #
# Optional build targets: dlls, utils, mono, all (default) #
#########################################################################
#########################################################################
...
@@ -23,7 +23,12 @@ LD = ld
...
@@ -23,7 +23,12 @@ LD = ld
LIBFILE
=
.a
LIBFILE
=
.a
EXEFILE
=
EXEFILE
=
ifeq
($(os),freebsd)
# FreeBSD
ifndef
$(os)
os
=
$(
shell
uname
)
$(
warning
OS not specified on
command
line, setting to
'
$(
os
)
'
.
)
endif
ifeq
($(os),FreeBSD)
# FreeBSD
LIBODIR
:=
gcc.freebsd.lib
LIBODIR
:=
gcc.freebsd.lib
EXEODIR
:=
gcc.freebsd.exe
EXEODIR
:=
gcc.freebsd.exe
else
# Linux
else
# Linux
...
@@ -35,7 +40,7 @@ DELETE = rm -fv
...
@@ -35,7 +40,7 @@ DELETE = rm -fv
CFLAGS
=
-DJAVASCRIPT
-I
../mozilla/js/src
CFLAGS
=
-DJAVASCRIPT
-I
../mozilla/js/src
ifeq
($(os),
f
ree
bsd
)
# FreeBSD
ifeq
($(os),
F
ree
BSD
)
# FreeBSD
CFLAGS
+=
-D_THREAD_SAFE
CFLAGS
+=
-D_THREAD_SAFE
# Math libraries needed and uses pthread
# Math libraries needed and uses pthread
LFLAGS
:=
-lm
-pthread
LFLAGS
:=
-lm
-pthread
...
@@ -49,7 +54,7 @@ ifdef DEBUG
...
@@ -49,7 +54,7 @@ ifdef DEBUG
CFLAGS
+=
-g
-O0
-D_DEBUG
CFLAGS
+=
-g
-O0
-D_DEBUG
LIBODIR
:=
$(
LIBODIR
)
.debug
LIBODIR
:=
$(
LIBODIR
)
.debug
EXEODIR
:=
$(
EXEODIR
)
.debug
EXEODIR
:=
$(
EXEODIR
)
.debug
ifeq
($(os),
f
ree
bsd
)
# FreeBSD
ifeq
($(os),
F
ree
BSD
)
# FreeBSD
LIBS
+=
../mozilla/js/src/FreeBSD4.3-RELEASE_DBG.OBJ/libjs.a
LIBS
+=
../mozilla/js/src/FreeBSD4.3-RELEASE_DBG.OBJ/libjs.a
else
# Linux
else
# Linux
LIBS
+=
../mozilla/js/src/Linux_All_DBG.OBJ/libjs.a
LIBS
+=
../mozilla/js/src/Linux_All_DBG.OBJ/libjs.a
...
@@ -57,7 +62,7 @@ endif
...
@@ -57,7 +62,7 @@ endif
else
# RELEASE
else
# RELEASE
LIBODIR
:=
$(
LIBODIR
)
.release
LIBODIR
:=
$(
LIBODIR
)
.release
EXEODIR
:=
$(
EXEODIR
)
.release
EXEODIR
:=
$(
EXEODIR
)
.release
ifeq
($(os),
f
ree
bsd
)
# FreeBSD
ifeq
($(os),
F
ree
BSD
)
# FreeBSD
LIBS
+=
../mozilla/js/src/FreeBSD4.3-RELEASE_OPT.OBJ/libjs.a
LIBS
+=
../mozilla/js/src/FreeBSD4.3-RELEASE_OPT.OBJ/libjs.a
else
else
LIBS
+=
../mozilla/js/src/Linux_All_OPT.OBJ/libjs.a
LIBS
+=
../mozilla/js/src/Linux_All_OPT.OBJ/libjs.a
...
...
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