From: Eric Kohl Date: Sun, 12 Sep 1999 18:18:09 +0000 (+0000) Subject: Added master makefile with clean/dist/floppy targets. X-Git-Tag: backups/unlabeled-1.3.1@12463~31 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=037d59aef77edcae3b2e42dedb5f8ba9d828823c Added master makefile with clean/dist/floppy targets. svn path=/trunk/; revision=657 --- diff --git a/rosapps/Makefile b/rosapps/Makefile new file mode 100644 index 00000000000..1dfe90df33b --- /dev/null +++ b/rosapps/Makefile @@ -0,0 +1,85 @@ +# +# Global makefile for the ROSAPPS package +# + +# +# Select your host +# +#HOST = djgpp-msdos +HOST = mingw32-windows + +include rules.mak + +# +# Available applications +# +APPS = cmd cmdutils +# APPS = sysutils notevil + +all: $(APPS) +.PHONY: all + +clean: $(APPS:%=%_clean) +.PHONY: clean + +floppy: make_floppy_dirs $(APPS:%=%_floppy) + +dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist) +.PHONY: dist + +# +# Applications +# +$(APPS): %: + make -C $* + +$(APPS:%=%_clean): %_clean: + make -C $* clean + +$(APPS:%=%_floppy): %_floppy: + make -C $* floppy + +$(APPS:%=%_dist): %_dist: + make -C $* dist + +.PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) + + +# +# Make an install floppy +# + +install: all + ./install.sh /mnt/hda1 + +make_floppy_dirs: +ifeq ($(DOSCLI),yes) + mkdir $(FLOPPY_DIR)\apps +else + mkdir $(FLOPPY_DIR)/apps +endif + +.PHONY: make_floppy_dirs + +# +# Make a distribution saveset +# + +clean_dist_dir: +ifeq ($(DOSCLI),yes) + $(RM) $(DIST_DIR)\*.* + $(RMDIR) $(DIST_DIR) +else + $(RM) -r $(DIST_DIR) +endif + +make_dist_dirs: +ifeq ($(DOSCLI),yes) + mkdir $(DIST_DIR) +else + mkdir $(DIST_DIR) +endif + +.PHONY: clean_dist_dir make_dist_dirs + +# EOF diff --git a/rosapps/rules.mak b/rosapps/rules.mak index afae57c0772..be833fa5585 100644 --- a/rosapps/rules.mak +++ b/rosapps/rules.mak @@ -22,6 +22,9 @@ PREFIX = i586-mingw32- EXE_POSTFIX = CP = cp DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as +FLOPPY_DIR = A/ +# DIST_DIR should be relative from the top of the tree +DIST_DIR = dist endif ifeq ($(HOST),mingw32-windows) @@ -31,6 +34,9 @@ CP = copy DLLTOOL = $(PREFIX)dlltool --as=$(PREFIX)as RM = del DOSCLI = yes +FLOPPY_DIR = A: +# DIST_DIR should be relative from the top of the tree +DIST_DIR = dist endif # @@ -71,6 +77,8 @@ RC = $(PREFIX)windres %.o: %.c $(CC) $(CFLAGS) -c $< -o $@ +%.coff: %.rc + $(RC) $< $@ RULES_MAK_INCLUDED = 1