From: Václav Slavík Date: Thu, 7 Aug 2003 13:14:19 +0000 (+0000) Subject: added makefile to compile all demos X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7fcb2c61a5be04a94622c89a4dc2d15d4189fb49 added makefile to compile all demos git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/Makefile.in b/demos/Makefile.in index 4da28190c5..f8d87a90f3 100644 --- a/demos/Makefile.in +++ b/demos/Makefile.in @@ -1,11 +1,78 @@ -# -# Makefile : Builds wxWindows demos for Unix. -# +# ========================================================================= +# This makefile was generated by +# Bakefile 0.1.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= -DEMOS_SUBDIRS=bombs dbbrowse forty fractal life poem -all: - @for d in $(DEMOS_SUBDIRS); do (cd $$d && $(MAKE)); done +@MAKE_SET@ -clean: - @for d in $(DEMOS_SUBDIRS); do (cd $$d && $(MAKE) clean); done +prefix = @prefix@ +exec_prefix = @exec_prefix@ +INSTALL = @INSTALL@ + +### Variables: ### + + +### Conditionally set variables: ### + + +### Targets: ### + +all: bombs dbbrowse forty fractal life poem + +bombs: + (cd bombs && $(MAKE) all) + +clean: + rm -rf ./.deps + rm -f ./*.o + (cd bombs && $(MAKE) clean) + (cd dbbrowse && $(MAKE) clean) + (cd forty && $(MAKE) clean) + (cd fractal && $(MAKE) clean) + (cd life && $(MAKE) clean) + (cd poem && $(MAKE) clean) + +dbbrowse: + (cd dbbrowse && $(MAKE) all) + +distclean: clean + rm -f configure config.cache config.log config.status + rm -f bk-deps shared-ld-sh + +forty: + (cd forty && $(MAKE) all) + +fractal: + (cd fractal && $(MAKE) all) + +install: all + (cd bombs && $(MAKE) install) + (cd dbbrowse && $(MAKE) install) + (cd forty && $(MAKE) install) + (cd fractal && $(MAKE) install) + (cd life && $(MAKE) install) + (cd poem && $(MAKE) install) + +install-strip: install + (cd bombs && $(MAKE) install-strip) + (cd dbbrowse && $(MAKE) install-strip) + (cd forty && $(MAKE) install-strip) + (cd fractal && $(MAKE) install-strip) + (cd life && $(MAKE) install-strip) + (cd poem && $(MAKE) install-strip) + +life: + (cd life && $(MAKE) all) + +poem: + (cd poem && $(MAKE) all) + +uninstall: + + +# Include dependency info, if present: +@IF_GNU_MAKE@-include .deps/*.d + +.PHONY: all bombs clean dbbrowse distclean forty fractal install life poem uninstall diff --git a/demos/makefile.bcc b/demos/makefile.bcc new file mode 100644 index 0000000000..aa8e8912ac --- /dev/null +++ b/demos/makefile.bcc @@ -0,0 +1,66 @@ +# ========================================================================= +# This makefile was generated by +# Bakefile 0.1.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= + +!ifndef BCCDIR +BCCDIR = $(MAKEDIR)\.. +!endif + +!include ../build/msw/config.bcc + +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- + +!if "$(BCCDIR)" == "\.." +!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 +!endif + +### Variables: ### + + +### Conditionally set variables: ### + + +MAKEARGS = + + +### Targets: ### + +all: bombs dbbrowse forty fractal life poem + +bombs: + cd bombs + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. + +clean: + -if exist .\*.obj del .\*.obj + -if exist .\*.res del .\*.res + +dbbrowse: + cd dbbrowse + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. + +forty: + cd forty + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. + +fractal: + cd fractal + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. + +life: + cd life + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. + +poem: + cd poem + $(MAKE) -f makefile.bcc $(MAKEARGS) all + cd .. diff --git a/demos/makefile.gcc b/demos/makefile.gcc new file mode 100644 index 0000000000..24d532f4bf --- /dev/null +++ b/demos/makefile.gcc @@ -0,0 +1,47 @@ +# ========================================================================= +# This makefile was generated by +# Bakefile 0.1.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= + +include ../build/msw/config.gcc + +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- + +### Variables: ### + + +### Conditionally set variables: ### + + +MAKEARGS = GCC_VERSION=$(GCC_VERSION) + + +### Targets: ### + +all: bombs dbbrowse forty fractal life poem + +bombs: + $(MAKE) -C bombs -f makefile.gcc $(MAKEARGS) all + +clean: + -if exist .\*.o del .\*.o + +dbbrowse: + $(MAKE) -C dbbrowse -f makefile.gcc $(MAKEARGS) all + +forty: + $(MAKE) -C forty -f makefile.gcc $(MAKEARGS) all + +fractal: + $(MAKE) -C fractal -f makefile.gcc $(MAKEARGS) all + +life: + $(MAKE) -C life -f makefile.gcc $(MAKEARGS) all + +poem: + $(MAKE) -C poem -f makefile.gcc $(MAKEARGS) all + +.PHONY: all bombs clean dbbrowse forty fractal life poem diff --git a/demos/makefile.vc b/demos/makefile.vc index 90fb158b0e..63bf06bea7 100644 --- a/demos/makefile.vc +++ b/demos/makefile.vc @@ -1,63 +1,56 @@ -# -# File: makefile.vc -# Author: Julian Smart -# Created: 1993 -# Updated: -# Copyright: -# -# "%W% %G%" -# -# Makefile : Builds demos for Win95, MSVC++ 16-bit -# Use FINAL=1 argument to nmake to build final version with no debugging -# info - -# Set WXDIR for your system -WXDIR = $(WXWIN) - -THISDIR=$(WXDIR)\demos - -# -# Indicates kind of pb with demos -# -# No makefile.vc file -NOMAKE=1 -# No 16 bit version -#ONLY32=1 -# Misc. compilation errors -COMPIL=1 -# Need PNG -PNGSETUP= - -!include $(WXDIR)\src\makemsc.env - -# -# Please keep demos list up-to-date, in alphabetical order -# -all: - cd $(WXDIR)\demos\bombs - nmake -f makefile.vc FINAL=$(FINAL) - cd $(WXDIR)\demos\dbbrowse - nmake -f makefile.vc FINAL=$(FINAL) - cd $(WXDIR)\demos\forty - nmake -f makefile.vc FINAL=$(FINAL) - cd $(WXDIR)\demos\fractal - nmake -f makefile.vc FINAL=$(FINAL) - cd $(WXDIR)\demos\life - nmake -f makefile.vc FINAL=$(FINAL) - cd $(WXDIR)\demos\poem - nmake -f makefile.vc FINAL=$(FINAL) - -clean: - cd $(WXDIR)\demos\bombs - nmake -f makefile.vc clean - cd $(WXDIR)\demos\dbbrowse - nmake -f makefile.vc clean - cd $(WXDIR)\demos\forty - nmake -f makefile.vc clean - cd $(WXDIR)\demos\fractal - nmake -f makefile.vc clean - cd $(WXDIR)\demos\life - nmake -f makefile.vc clean - cd $(WXDIR)\demos\poem - nmake -f makefile.vc clean +# ========================================================================= +# This makefile was generated by +# Bakefile 0.1.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= +!include <../build/msw/config.vc> + +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- + +### Variables: ### + + +### Conditionally set variables: ### + + + +### Targets: ### + +all: sub_bombs sub_dbbrowse sub_forty sub_fractal sub_life sub_poem + +sub_bombs: + cd bombs + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) + +clean: + -if exist .\*.obj del .\*.obj + -if exist .\*.res del .\*.res + +sub_dbbrowse: + cd dbbrowse + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) + +sub_forty: + cd forty + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) + +sub_fractal: + cd fractal + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) + +sub_life: + cd life + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) + +sub_poem: + cd poem + $(MAKE) /$(MAKEFLAGS) -f makefile.vc all + cd $(MAKEDIR) diff --git a/demos/makefile.wat b/demos/makefile.wat new file mode 100644 index 0000000000..5bdf79ec69 --- /dev/null +++ b/demos/makefile.wat @@ -0,0 +1,75 @@ +# ========================================================================= +# This makefile was generated by +# Bakefile 0.1.1 (http://bakefile.sourceforge.net) +# Do not modify, all changes will be overwritten! +# ========================================================================= + +!include ../build/msw/config.wat + +# ------------------------------------------------------------------------- +# Do not modify the rest of this file! +# ------------------------------------------------------------------------- + +# Speed up compilation a bit: +!ifdef __LOADDLL__ +! loaddll wcc wccd +! loaddll wccaxp wccdaxp +! loaddll wcc386 wccd386 +! loaddll wpp wppdi86 +! loaddll wppaxp wppdaxp +! loaddll wpp386 wppd386 +! loaddll wlink wlink +! loaddll wlib wlibd +!endif + +# We need these variables in some bakefile-made rules: +WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- + +### Conditionally set variables: ### + + +### Variables: ### + + +MAKEARGS = + + +### Targets: ### + +all : .SYMBOLIC bombs dbbrowse forty fractal life poem + +bombs : .SYMBOLIC + cd bombs + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD) + +clean : .SYMBOLIC + -if exist .\*.obj del .\*.obj + -if exist .\*.res del .\*.res + -if exist .\*.lbc del .\*.lbc + -if exist .\*.ilk del .\*.ilk + +dbbrowse : .SYMBOLIC + cd dbbrowse + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD) + +forty : .SYMBOLIC + cd forty + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD) + +fractal : .SYMBOLIC + cd fractal + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD) + +life : .SYMBOLIC + cd life + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD) + +poem : .SYMBOLIC + cd poem + wmake $(__MAKEOPTS__) -f makefile.wat $(MAKEARGS) all + cd $(WATCOM_CWD)