CC = g++ LIBS = `pkg-config --libs ibsimu-1.0.6dev` LDFLAGS = -Wall -g CXXFLAGS = -Wall -g `pkg-config --cflags ibsimu-1.0.6dev` all: save load save: save.o $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ load: load.o $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ .cpp.o: $(CC) $(CXXFLAGS) -c $< -o $@ clean: $(RM) *.o save load *~