From e93d9b07a64574b5b7ee2c8b52b048c5cc48af4d Mon Sep 17 00:00:00 2001 From: tetu-s Date: Wed, 17 Sep 2014 11:01:15 +0900 Subject: [PATCH] Remove ridiculous target in Makefile.in; Add -fPIC flag --- src/Makefile.in | 2 +- test/Makefile.in | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 736762e..b6b0d8e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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) diff --git a/test/Makefile.in b/test/Makefile.in index 73717e3..01b1eac 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -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) -- 2.11.0