From 23bb0590651da3f342cddcd3c87aee38a1d067cc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 20 Nov 2004 03:19:59 +0000 Subject: Watcom fixes (STR #584, STR #594, STR #595) Fixed library include order when building DSOs on MacOS X (STR #596) fl_xid() could cause a WIN32 application to crash (STR #560, STR #576, STR #618) Fl_Browser::remove_() removed the item from the list before computing the item height, which caused problems with some programs (STR #613) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- watcom/makefile | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 watcom/makefile (limited to 'watcom/makefile') diff --git a/watcom/makefile b/watcom/makefile new file mode 100644 index 000000000..69ed2c026 --- /dev/null +++ b/watcom/makefile @@ -0,0 +1,103 @@ +# +# Name : Watcom makefile for FLTK, multiplatform +# +# Author : M. Nieuwenhoven +# +# The makefile has multiple targets: +# - clean : Cleans all directories from files built during make +# - all : Builds all targets for both debug and release +# - xy : where x = D|R, Y = D|O|W|L, where only W (Win32) is +# currently supported by the source for Watcom. +# + + +!ifndef %FLTK +ERROR_MSG = Environment variable FLTK must have been set! +!endif + +.BEFORE +!ifdef ERROR_MSG + @echo . + @echo $(ERROR_MSG) + @echo . + @%abort +!endif + +ROOT=$(%FLTK) +PROJ=fltk + +# +# This builds all library targets and the main programs +# +ALL : .SYMBOLIC + set Clean= + wmake -h dw + wmake -h rw +# wmake -h do +# wmake -h ro +# wmake -h dl +# wmake -h rl + +# +# Clean all directories. Call each target with a 'clean' target. Proper +# knowledge about cleaning can only be at the places where also the +# builds is done. +# +clean : .SYMBOLIC + @echo Cleaning up. + set Clean=CLEAN + wmake -h dw + wmake -h rw +# wmake -h do +# wmake -h ro +# wmake -h dl +# wmake -h rl + +# +# Win32 Debug and Release targets +# +DW : .SYMBOLIC + @set OPTIONS=D=d O=w ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT) + %make BuildOne + +RW : .SYMBOLIC + @set OPTIONS=D=r O=w ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT) + %make BuildOne + +# +# OS/2 Debug and Release targets. Builds only jpeg, zlib and png libs for now. +# +DO : .SYMBOLIC + @set OPTIONS=D=d O=o ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT) + %make BuildOne + +RO : .SYMBOLIC + @set OPTIONS=D=r O=o ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT) + %make BuildOne + + +# Internal target to build the individual modules. The following macros must +# have been set: D (value D or R), O (D,O,W,L) + +BuildOne : .SYMBOLIC + + @echo "=== making jpeg library ===" + @cd $(ROOT)\jpeg + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + @echo "=== making zlib library ===" + @cd $(ROOT)\zlib + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + @echo "=== making png library ===" + @cd $(ROOT)\png + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + @echo "=== making fltk libraries ===" + @cd $(ROOT)\src + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + @echo "=== making fluid ===" + @cd $(ROOT)\fluid + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + @echo "=== making test ===" + @cd $(ROOT)\test + @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN) + + -- cgit v1.2.3