CC=g++ TPLOC=/home/riyer/workspace/RTB/third-party/build/ all: libshm.so MyClass.o: MyClass.cpp $(CC) -g -fPIC -c MyClass.cpp -I$(TPLOC)/boost_1_49_0/include -I. OBJS=MyClass.o libshm.so: MyClass.o $(CC) -fPIC -shared $(OBJS) -o $(SRC_HEAD)/build/lib/$@ clean: rm -f *.o $(SRC_HEAD)/build/lib/libshm.so