OSDN Git Service

Remove ridiculous target in Makefile.in; Add -fPIC flag master
authortetu-s <tetsu.sato@nhn-playart.com>
Wed, 17 Sep 2014 02:01:15 +0000 (11:01 +0900)
committertetu-s <tetsu.sato@nhn-playart.com>
Wed, 17 Sep 2014 02:01:15 +0000 (11:01 +0900)
src/Makefile.in
test/Makefile.in

index 736762e..b6b0d8e 100644 (file)
@@ -5,7 +5,7 @@ OBJS=$(SRCS:.cc=.o)
 HEADS=$(SRCS:.cc=.h)
 TARGETS=libparticle.a
 AR=@AR@
-CFLAGS=-I. -g -Wall
+CFLAGS=-I. -g -Wall -fPIC
 all: $(TARGETS)
 
 libparticle.a: $(OBJS)
index 73717e3..01b1eac 100644 (file)
@@ -3,7 +3,7 @@ CXX=@CXX@
 SRCS=test_particle.cc test_particles.cc test_filter.cc
 OBJS=$(SRCS:.cc=.o)
 TARGETS=$(SRCS:.cc=)
-CFLAGS=-I/usr/local/include/cutter -I. -I../src  -g -Wall
+CFLAGS=-I/usr/local/include/cutter -I. -I../src  -g -Wall -fPIC
 LDFLAGS=@LDFLAGS@ -L. -L../src -lparticle -lcppcutter
 all: $(TARGETS)
 
@@ -16,8 +16,9 @@ test_particles: test_particles.o
 test_filter: test_filter.o
        $(CXX) -o $@.so $@.o $(LDFLAGS) -shared
 
-test_edit: test_edit.o
-       $(CXX) -o $@.so $@.o $(LDFLAGS) -shared
+# What's this? 
+#test_edit: test_edit.o
+#      $(CXX) -o $@.so $@.o $(LDFLAGS) -shared
 
 
 .cc.o: $(SRCS)