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
2ba0c8c4
Commit
2ba0c8c4
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New makefile for GNU/Unix builds.
parent
850a3293
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/sbj/GNUmakefile
+55
-0
55 additions, 0 deletions
xtrn/sbj/GNUmakefile
xtrn/sbl/GNUmakefile
+55
-0
55 additions, 0 deletions
xtrn/sbl/GNUmakefile
with
110 additions
and
0 deletions
xtrn/sbj/GNUmakefile
0 → 100644
+
55
−
0
View file @
2ba0c8c4
# Makefile.gnu
#########################################################################
# Makefile for Synchronet Blackjack #
# For use with GNU make and GNU C Compiler #
# @format.tab-size 4, @format.use-tabs true #
# #
# Linux: make -f Makefile.gnu #
# Win32: make -f Makefile.gnu os=win32 #
# FreeBSD: make -f Makefile.gnu os=freebsd #
#########################################################################
# $Id$
# Macros
CC
=
gcc
LD
=
ld
ifndef
$(os)
os
=
$(
shell
uname
)
$(
warning
OS not specified on
command
line, setting to
'
$(
os
)
'
.
)
endif
ifeq
($(os),win32)
# Windows
EXEFILE
=
.exe
LIBDIR
:=
/gcc/i386-mingw32/lib
CFLAGS
:=
-mno-cygwin
LFLAGS
:=
--target
=
i386-mingw32
-mno-cygwin
DELETE
=
echo
y | del
LIBS
=
$(
LIBDIR
)
/libwsock32.a
else
# Linux
EXEFILE
=
LIBODIR
:=
gcc.linux.lib
EXEODIR
:=
gcc.linux.exe
LIBDIR
:=
/usr/lib
CFLAGS
:=
LFLAGS
:=
DELETE
=
rm
-f
-v
ifeq
($(os),FreeBSD)
# FreeBSD
LIBS
=
-pthread
else
LIBS
=
$(
LIBDIR
)
/libpthread.a
endif
#! FreeBSD
endif
CFLAGS
:=
$(
CFLAGS
)
-I
../sdk
SBJ
:
sbj$(EXEFILE)
sbj$(EXEFILE)
:
sbj.c ../sdk/xsdk.c ../sdk/xsdkvars.c ../sdk/xsdkwrap.c
$(
CC
)
$(
CFLAGS
)
$^
-o
$@
$(
LIBS
)
This diff is collapsed.
Click to expand it.
xtrn/sbl/GNUmakefile
0 → 100644
+
55
−
0
View file @
2ba0c8c4
# Makefile.gnu
#########################################################################
# Makefile for Synchronet BBS List #
# For use with GNU make and GNU C Compiler #
# @format.tab-size 4, @format.use-tabs true #
# #
# Linux: make -f Makefile.gnu #
# Win32: make -f Makefile.gnu os=win32 #
# FreeBSD: make -f Makefile.gnu os=freebsd #
#########################################################################
# $Id$
# Macros
CC
=
gcc
LD
=
ld
ifndef
$(os)
os
=
$(
shell
uname
)
$(
warning
OS not specified on
command
line, setting to
'
$(
os
)
'
.
)
endif
ifeq
($(os),win32)
# Windows
EXEFILE
=
.exe
LIBDIR
:=
/gcc/i386-mingw32/lib
CFLAGS
:=
-mno-cygwin
LFLAGS
:=
--target
=
i386-mingw32
-mno-cygwin
DELETE
=
echo
y | del
LIBS
=
$(
LIBDIR
)
/libwsock32.a
else
# Linux
EXEFILE
=
LIBODIR
:=
gcc.linux.lib
EXEODIR
:=
gcc.linux.exe
LIBDIR
:=
/usr/lib
CFLAGS
:=
LFLAGS
:=
DELETE
=
rm
-f
-v
ifeq
($(os),FreeBSD)
# FreeBSD
LIBS
=
-pthread
else
LIBS
=
$(
LIBDIR
)
/libpthread.a
endif
endif
CFLAGS
:=
$(
CFLAGS
)
-I
../sdk
SBL
:
sbl$(EXEFILE)
sbl$(EXEFILE)
:
sbl.c ../sdk/xsdk.c ../sdk/xsdkvars.c ../sdk/xsdkwrap.c
$(
CC
)
$(
CFLAGS
)
$^
-o
$@
$(
LIBS
)
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