X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd9f42b6a94f9d68c66cf363093442b12cd4e953..25088f1eea365f0da7aeb565932dd4fe0fd5d20e:/contrib/build/gizmos/makefile.wat diff --git a/contrib/build/gizmos/makefile.wat b/contrib/build/gizmos/makefile.wat index 10b43d8276..4abeacafc6 100644 --- a/contrib/build/gizmos/makefile.wat +++ b/contrib/build/gizmos/makefile.wat @@ -27,6 +27,13 @@ WATCOM_CWD = $+ $(%cdrive):$(%cwd) $- ### Conditionally set variables: ### +LIBDIRNAME = +!ifeq SHARED 0 +LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\wat_lib$(CFG) +!endif +!ifeq SHARED 1 +LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\wat_dll$(CFG) +!endif PORTNAME = !ifeq USE_GUI 0 PORTNAME = base @@ -168,13 +175,7 @@ __gizmoslib___depname = & GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm & $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & - $(__UNICODE_DEFINE_p) -i=..\..\src\gizmos\..\..\..\include & - -i=$(LIBDIRNAME) -i=..\..\src\gizmos\..\..\..\src\tiff & - -i=..\..\src\gizmos\..\..\..\src\jpeg & - -i=..\..\src\gizmos\..\..\..\src\png & - -i=..\..\src\gizmos\..\..\..\src\zlib & - -i=..\..\src\gizmos\..\..\..\src\regex & - -i=..\..\src\gizmos\..\..\..\src\expat\lib & + $(__UNICODE_DEFINE_p) -i=..\..\src\gizmos\..\..\..\include -i=$(SETUPHDIR) & -i=..\..\src\gizmos\..\..\include -dWXUSINGDLL -dWXMAKINGDLL_GIZMOS & $(CXXFLAGS) /fh=$(OBJS)\wxprec_gizmosdll.pch GIZMOSDLL_OBJECTS = & @@ -187,13 +188,7 @@ GIZMOSDLL_OBJECTS = & $(OBJS)\gizmosdll_statpict.obj GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm & $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) & - $(__UNICODE_DEFINE_p) -i=..\..\src\gizmos\..\..\..\include & - -i=$(LIBDIRNAME) -i=..\..\src\gizmos\..\..\..\src\tiff & - -i=..\..\src\gizmos\..\..\..\src\jpeg & - -i=..\..\src\gizmos\..\..\..\src\png & - -i=..\..\src\gizmos\..\..\..\src\zlib & - -i=..\..\src\gizmos\..\..\..\src\regex & - -i=..\..\src\gizmos\..\..\..\src\expat\lib & + $(__UNICODE_DEFINE_p) -i=..\..\src\gizmos\..\..\..\include -i=$(SETUPHDIR) & -i=..\..\src\gizmos\..\..\include $(CXXFLAGS) & /fh=$(OBJS)\wxprec_gizmoslib.pch GIZMOSLIB_OBJECTS = & @@ -204,12 +199,10 @@ GIZMOSLIB_OBJECTS = & $(OBJS)\gizmoslib_multicell.obj & $(OBJS)\gizmoslib_splittree.obj & $(OBJS)\gizmoslib_statpict.obj -LIBDIRNAME = & - ..\..\src\gizmos\..\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) OBJS = & wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) - -MAKEARGS = BUILD=$(BUILD) CFG=$(CFG) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) RUNTIME_LIBS=$(RUNTIME_LIBS) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV) +SETUPHDIR = & + $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) all : $(OBJS) @@ -276,10 +269,10 @@ $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos @%create $(OBJS)\gizmosdll.lbc @%append $(OBJS)\gizmosdll.lbc option quiet @%append $(OBJS)\gizmosdll.lbc name $^@ - @%append $(OBJS)\gizmosdll.lbc option incremental + @%append $(OBJS)\gizmosdll.lbc option caseexact @%append $(OBJS)\gizmosdll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) @for %i in ($(GIZMOSDLL_OBJECTS)) do @%append $(OBJS)\gizmosdll.lbc file %i - @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_BASE_p) $(__WXLIB_CORE_p)) do @%append $(OBJS)\gizmosdll.lbc library %i + @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_BASE_p) $(__WXLIB_CORE_p)) do @%append $(OBJS)\gizmosdll.lbc library %i @%append $(OBJS)\gizmosdll.lbc @%append $(OBJS)\gizmosdll.lbc system nt_dll wlink @$(OBJS)\gizmosdll.lbc