Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
e26bc5df
Commit
e26bc5df
authored
Apr 06, 2002
by
rswindell
Browse files
Added support for new targets.mk include file.
parent
b01fd14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
src/xpdev/GNUmakefile
src/xpdev/GNUmakefile
+4
-11
No files found.
src/xpdev/GNUmakefile
View file @
e26bc5df
...
...
@@ -5,7 +5,7 @@
# For use with GNU make and GNU C Compiler #
# @format.tab-size 4, @format.use-tabs true #
# #
# usage: gmake
#
# usage: gmake
[os=target_os]
#
#########################################################################
# $Id$
...
...
@@ -16,10 +16,6 @@ CC = gcc
SLASH
=
/
OFILE
=
o
LD
=
ld
LIBFILE
=
.a
EXEFILE
=
ifndef
$(os)
os
=
$(
shell
uname
)
$(warning
OS
not
specified
on
command
line,
setting
to
'$(os)'
.)
...
...
@@ -31,10 +27,8 @@ DELETE = rm -fv
ifeq
($(os),FreeBSD)
# FreeBSD
CFLAGS
+=
-D_THREAD_SAFE
# Uses pthread
LFLAGS
:=
-pthread
else
# Linux / Other UNIX
# Math and pthread libraries needed
else
# Linux / Other UNIX
LFLAGS
:=
-lpthread
endif
...
...
@@ -46,8 +40,7 @@ ODIR := $(ODIR).release
endif
include
objects.mk
# defines $(OBJS)
all
:
$(ODIR) $(ODIR)/wraptest
include
targets.mk
# defines all and clean targets
# Implicit C Compile Rule
$(ODIR)/%.o
:
%.c
...
...
@@ -59,7 +52,7 @@ $(ODIR):
mkdir
$(ODIR)
# Executable Build Rule
$(
ODIR)/wraptest
:
$(ODIR)/wraptest.o $(OBJS)
$(
WRAPTEST)
:
$(ODIR)/wraptest.o $(OBJS)
@
echo
Linking
$@
@
$(CC)
$(LFLAGS)
$^
-o
$@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment