X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/735c116a84838813bca1bf3406cadd49dac73dfc..d6f2a8911e509fd9e61f881cc881a97f5aa05ae8:/src/png/MAKEFILE.VA diff --git a/src/png/MAKEFILE.VA b/src/png/MAKEFILE.VA index e8fbfa0747..23331d504a 100644 --- a/src/png/MAKEFILE.VA +++ b/src/png/MAKEFILE.VA @@ -3,7 +3,8 @@ # Author: David Webster # Created: 1999 # Updated: -# Copyright: c) 1993, AIAI, University of Edinburgh +# Copyright: +# Licence: wxWindows Licence # # "%W% %G%" # @@ -13,18 +14,27 @@ OBJSUFF=obj SRCSUFF=cpp -OS2FLAGS=/c /W3 /DOS232 /D__VISAGECPP__ /Ss /Q /N100 +OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16 OS2LIBFLAGS=/NOL /NOE OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB +!if "$(WXMAKINGDLL)" != "0" +EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__ +EXTRALNKFLAGS=/DLL +!endif + # Change WXDIR or WXWIN to wherever wxWindows is found -WXDIR = j:\dev\wx2\wxWindows +WXDIR = $(WXWIN) OS2PNGDIR=$(WXDIR)\src\png OS2PNGINC=$(WINPNGDIR) OS2PNGLIB=$(WXDIR)\lib\os2png.lib - +!if "$(WXMAKINGDLL)" != "1" +OS2PNGLIB=$(WXDIR)\lib\os2png.lib +!else +OS2PNGLIB=$(WXDIR)\lib\os2png.dll +!endif INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC) !ifndef FINAL @@ -42,7 +52,11 @@ MAKEPRECOMP=/Fi$(PCH) !endif !if "$(FINAL)" == "0" -D=Debug +!if "$(WXMAKINGDLL)" == "1" +D=DebugOS2DLL +!else +D=DebugOS2 +!endif OPT = DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb LINK_DEBUG_FLAGS=/DEBUG @@ -50,14 +64,23 @@ CRTFLAG=/Gm /Gd !else # /O1 - smallest code # /O2 - fastest code -D=Release +!if "$(WXMAKINGDLL)" == "1" +D=RelseOS2DLL +!else +D=RelseOS2 +!endif OPT = /O+ /Oc /G5 DEBUG_FLAGS= LINK_DEBUG_FLAGS=/RELEASE CRTFLAG=/Gm /Gd !endif -CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG) +!if [md $(OS2PNGDIR)\$D] +!endif + +CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG) +LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS) +LIBS=..\\..\\lib\os2zlibd.lib {..\png}.c{..\png\$D}.obj: @echo $< @@ -84,8 +107,7 @@ OBJECTS = \ all: $(OS2PNGLIB) -$(OS2PNGDIR)\$D: - md $(OS2PNGDIR)\$D +!if "$(WXMAKINGDLL)" != "1" $(WXDIR)\lib\os2png.lib: $(OBJECTS) touch $(WXDIR)\lib\os2png.lib @@ -94,10 +116,24 @@ $(WXDIR)\lib\os2png.lib: $(OBJECTS) $**; << +!else + +# Update the dynamic link library +$(WXDIR)\lib\os2png.dll: $(OBJECTS) + icc @<< + /B" $(LINKFLAGS)" /Fe$@ + $(LIBS) + $(OBJECTS) + $(WXDIR)\src\os2\os2png.def +<< + implib $(WXDIR)\lib\os2pngd.lib $(WXDIR)\src\os2\os2png.def + +!endif + clean: - del *.obj - del *.exe - del *.lib + del $(OS2PNGLIB) + erase /N $(OS2PNGDIR)\$D + rd $(OS2PNGDIR)\$D cleanall: clean