--- a/src/server/safs/Makefile Thu Feb 16 15:08:38 2012 +0100 +++ b/src/server/safs/Makefile Wed Feb 22 23:20:39 2012 +0100 @@ -26,19 +26,11 @@ # POSSIBILITY OF SUCH DAMAGE. # -BUILD_ROOT = ../../../ -OBJ_DIR = $(BUILD_ROOT)build/ - -CFLAGS = -I/usr/include/mps -g -LDFLAGS = - -include objs.mk +SAFS_CFLAGS = -I/usr/include/mps -g -all: $(SAFOBJS) +$(SAFS_OBJPRE)%.o: safs/%.c + cc -o $@ -c $(SAFS_CFLAGS) $(CFLAGS) $< -$(SAFS_OBJPRE)%.o: %.c - cc -o $@ -c $(CFLAGS) $< - -$(SAFS_OBJPRE)%.o: %.cpp - CC -o $@ -c $(CFLAGS) $< +$(SAFS_OBJPRE)%.o: /safs/%.cpp + CC -o $@ -c $(SAFS_CFLAGS) $(CFLAGS) $<