--- a/src/server/util/Makefile Thu Feb 16 15:08:38 2012 +0100 +++ b/src/server/util/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 +UTIL_CFLAGS = -I/usr/include/mps -g -all: $(UTILOBJS) +$(UTIL_OBJPRE)%.o: util/%.c + cc -o $@ -c $(UTIL_CFLAGS) $(CFLAGS) $< -$(UTIL_OBJPRE)%.o: %.c - cc -o $@ -c $(CFLAGS) $< - -$(UTIL_OBJPRE)%.o: %.cpp - CC -o $@ -c $(CFLAGS) $< +$(UTIL_OBJPRE)%.o: util/%.cpp + CC -o $@ -c $(UTIL_CFLAGS) $(CFLAGS) $<