CC=gcc
CXX=g++
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. -L../src -lparticle -lcppcutter
all: $(TARGETS)

test_particle: test_particle.o
	$(CXX) -o $@.so $@.o $(LDFLAGS) -shared

test_particles: test_particles.o
	$(CXX) -o $@.so $@.o $(LDFLAGS) -shared

test_filter: test_filter.o
	$(CXX) -o $@.so $@.o $(LDFLAGS) -shared

test_edit: test_edit.o
	$(CXX) -o $@.so $@.o $(LDFLAGS) -shared


.cc.o: $(SRCS)
	$(CXX) $(CFLAGS) -c $<


clean:
	rm -f *.o *.a *~ *.lo *.la *.so $(TARGETS)
