From: Royce Mitchell III Date: Fri, 11 Mar 2005 14:07:48 +0000 (+0000) Subject: beginning of local stub makefiles, to allow building from subdirectories ( I'm explic... X-Git-Tag: backups/xmlbuildsystem@15601~176 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b832dffe13fbfc24bfde4648e16b7501f56fa681;ds=sidebyside beginning of local stub makefiles, to allow building from subdirectories ( I'm explicitly not allowing a full clean from a subdirectory ) svn path=/branches/xmlbuildsystem/; revision=13931 --- diff --git a/reactos/proxy.mak b/reactos/proxy.mak new file mode 100644 index 00000000000..783b42129ae --- /dev/null +++ b/reactos/proxy.mak @@ -0,0 +1,10 @@ +MAKEFLAGS += --no-print-directory --silent + +$(DEFAULT): + @$(MAKE) -C $(TOP) $(DEFAULT) + +all: + @$(MAKE) -C $(TOP) all + +clean: + @$(MAKE) -C $(TOP) $(DEFAULT)_clean diff --git a/reactos/tools/cabman/makefile b/reactos/tools/cabman/makefile index 3761209d826..46936b636dc 100755 --- a/reactos/tools/cabman/makefile +++ b/reactos/tools/cabman/makefile @@ -1,49 +1,3 @@ -# -# ReactOS Cabinet Manager -# -PATH_TO_TOP = ../.. - -TARGET=cabman$(EXE_POSTFIX) - -all: $(TARGET) - -OBJECTS = cabinet.o mszip.o raw.o main.o dfp.o - -CLEAN_FILES = *.o cabman$(EXE_POSTFIX) - -HOST_CFLAGS = -g -I. -I$(PATH_TO_TOP)/lib/zlib -I$(W32API_PATH)/include -Werror -Wall - -HOST_LFLAGS = -g $(PATH_TO_TOP)/lib/zlib/zlib.host.a - -cabinet.o: cabinet.cxx - $(HOST_CXX) $(HOST_CFLAGS) -c cabinet.cxx -o cabinet.o - -mszip.o: mszip.cxx - $(HOST_CXX) $(HOST_CFLAGS) -c mszip.cxx -o mszip.o - -raw.o: raw.cxx - $(HOST_CXX) $(HOST_CFLAGS) -c raw.cxx -o raw.o - -main.o: main.cxx - $(HOST_CXX) $(HOST_CFLAGS) -c main.cxx -o main.o - -dfp.o: dfp.cxx - $(HOST_CXX) $(HOST_CFLAGS) -c dfp.cxx -o dfp.o - -cabman$(EXE_POSTFIX): $(OBJECTS) - $(HOST_CXX) $(OBJECTS) $(HOST_LFLAGS) -o cabman$(EXE_POSTFIX) - -ifeq ($(HOST),mingw32-linux) -clean: - rm -f *.o - rm -f cabman$(EXE_POSTFIX) -endif -ifeq ($(HOST),mingw32-windows) -clean: - -del *.o - -del cabman$(EXE_POSTFIX) -endif - -.phony: clean - -include $(PATH_TO_TOP)/rules.mak +TOP = ../.. +DEFAULT = cabman +include $(TOP)/proxy.mak \ No newline at end of file