projects
/
universe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12dcd90
)
Added -fPIC for the amd64 architecture.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 5 Jan 2012 07:58:47 +0000
(08:58 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 5 Jan 2012 07:58:47 +0000
(08:58 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
0f7540c
..
232fe63
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-20,7
+20,7
@@
ifeq ($(DEBUG),yes)
else
# Optimized compilation
# CXXFLAGS = -Wall -g -O3 -pg --coverage
else
# Optimized compilation
# CXXFLAGS = -Wall -g -O3 -pg --coverage
- CXXFLAGS = -Wall -g -O3
+ CXXFLAGS = -
fPIC -
Wall -g -O3
endif
LDFLAGS = -L/usr/X11R6/lib/
endif
LDFLAGS = -L/usr/X11R6/lib/
@@
-28,7
+28,7
@@
LDFLAGS = -L/usr/X11R6/lib/
TASK_SRC = dummy.cc move_square.cc hit_shape.cc
TASK_OBJ = $(TASK_SRC:.cc=.task)
TASK_SRC = dummy.cc move_square.cc hit_shape.cc
TASK_OBJ = $(TASK_SRC:.cc=.task)
-all: ma
sh ma
in TAGS $(TASK_OBJ)
+all: main TAGS $(TASK_OBJ)
TAGS: *.cc *.h
etags *.cc *.h
TAGS: *.cc *.h
etags *.cc *.h
@@
-46,9
+46,6
@@
main: main.o misc.o \
intelligence.o
$(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
intelligence.o
$(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
-mash: misc.o universe.o polygon.o xfig_tracer.o mash.o
- $(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
-
%.task: %.cc misc.o universe.o polygon.o xfig_tracer.o map.o task.o manipulator.o
$(CXX) $(CXXFLAGS) -shared -Wl,-soname,$@ -o $@ $^
%.task: %.cc misc.o universe.o polygon.o xfig_tracer.o map.o task.o manipulator.o
$(CXX) $(CXXFLAGS) -shared -Wl,-soname,$@ -o $@ $^