OSDN Git Service

make directory lib if does not exist
authorlinuxchecker <tetu-s@computer.org>
Wed, 3 Oct 2012 13:30:54 +0000 (22:30 +0900)
committerlinuxchecker <tetu-s@computer.org>
Wed, 3 Oct 2012 13:30:54 +0000 (22:30 +0900)
Makefile
Makefile.in
test/Makefile

index 997eb3d..fbf12b1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ all:
        cd src && $(MAKE)
 
 install:
+       test -d lib || mkdir lib
        cp src/libparticle.* lib/
 
 .PHONY: test sample
index d5c63b7..3e3075b 100644 (file)
@@ -4,6 +4,7 @@ all:
        cd src && $(MAKE)
 
 install:
+       test -d lib || mkdir lib
        cp src/libparticle.* lib/
 
 .PHONY: test sample
index 2b625cd..41294e1 100644 (file)
@@ -4,7 +4,7 @@ SRCS=test_particle.cc test_particles.cc test_filter.cc test_edit.cc
 OBJS=$(SRCS:.cc=.o)
 TARGETS=$(SRCS:.cc=)
 CFLAGS=-I/usr/local/include/cutter -I. -I../src  -g -Wall
-LDFLAGS=-L/usr/local/lib -L. -L../src -lparticle -lcppcutter
+LDFLAGS= -L. -L../src -lparticle -lcppcutter
 all: $(TARGETS)
 
 test_particle: test_particle.o