Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
7b22be99
Commit
7b22be99
authored
Dec 13, 2013
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example program make now uses ross-config
parent
bfb283bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
doc/example/Makefile
doc/example/Makefile
+16
-12
No files found.
doc/example/Makefile
View file @
7b22be99
all
:
check example.o example
ifndef
CODESBASE
$(error
CODESBASE
is
undefined,
see
README.txt)
endif
ifndef
CODESNET
$(error
CODESNET
is
undefined,
see
README.txt)
endif
ifndef
ROSS
$(error
ROSS
is
undefined,
see
README.txt)
endif
CFLAGS
=
-Wall
CC
=
mpicc
# ross conflates CFLAGS with CPPFLAGS, so use just this one
override
CPPFLAGS
+=
$(
shell
$(ROSS)
/bin/ross-config
--cflags
)
-I
$(CODESBASE)
/include
-I
$(CODESNET)
/include/codes
CC
=
$(
shell
$(ROSS)
/bin/ross-config
--cc
)
LDFLAGS
=
$(
shell
$(ROSS)
/bin/ross-config
--ldflags
)
-L
$(CODESBASE)
/lib
-L
$(CODESNET)
/lib
LDLIBS
=
$(
shell
$(ROSS)
/bin/ross-config
--libs
)
-lcodes-net
-lcodes-base
check
:
check-env
@
echo
CODESBASE:
$(CODESBASE)
@
echo
CODESNET:
$(CODESNET)
@
echo
ROSS:
$(ROSS)
example.o
:
example.c
$(CC)
-c
$(CFLAGS)
-I
$(ROSS)
/include
-I
$(CODESBASE)
/include
-I
$(CODESNET)
/include example.c
example
:
example.c
example
:
example.o
$(CC)
$(CFLAGS)
example.o
-o
example
-L
$(ROSS)
/lib
-lROSS
-lm
-L
$(CODESBASE)
/lib
-lcodes-base
-L
$(CODESNET)
/lib
-lcodes-net
#$(CC) $(ROSS_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(ROSS_LDFLAGS) $^ -o $@ -L$(ROSS)/lib -lROSS -lm -L$(CODESBASE)/lib -lcodes-base -L$(CODESNET)/lib -lcodes-net
check-env
:
ifndef
CODESBASE
...
...
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