X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d4c6a214ac5b00dbf5e314e369471135db81c0d..520e470fdd0daef09c77938db642e4583933c90d:/src/msw/makefile.b32 diff --git a/src/msw/makefile.b32 b/src/msw/makefile.b32 index d3fff4e0cc..b6db626851 100644 --- a/src/msw/makefile.b32 +++ b/src/msw/makefile.b32 @@ -19,6 +19,13 @@ !endif WXDIR = $(WXWIN) + +# Set all these to 1 if you want to build a dynamic library +!if "$(DLL)" == "1" +WXMAKINGDLL=1 +WXBUILDDLL=1 +!endif + !include $(WXDIR)\src\makeb32.env # Please set these according to the settings in wx_setup.h, so we can include @@ -43,8 +50,18 @@ PERIPH_TARGET=xpm $(PERIPH_TARGET) PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET) !endif -LIBTARGET= $(WXLIBDIR)\wx32.lib +PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(PERIPH_LIBS) +PERIPH_TARGET=zlib $(PERIPH_TARGET) +PERIPH_CLEAN_TARGET=clean_zlib $(PERIPH_CLEAN_TARGET) + +!if "$(DLL)" == "0" DUMMY=dummy +!else +DUMMY=dummydll +LIBS= cw32 import32 ole2w32 +!endif + +LIBTARGET=$(WXLIB) GENDIR=..\generic COMMDIR=..\common @@ -59,10 +76,12 @@ GENERICOBJS= \ $(MSWDIR)\fontdlgg.obj \ $(MSWDIR)\gridg.obj \ $(MSWDIR)\helpxlp.obj \ + $(MSWDIR)\laywin.obj \ $(MSWDIR)\msgdlgg.obj \ $(MSWDIR)\panelg.obj \ $(MSWDIR)\printps.obj \ $(MSWDIR)\prntdlgg.obj \ + $(MSWDIR)\sashwin.obj \ $(MSWDIR)\scrolwin.obj \ $(MSWDIR)\splitter.obj \ $(MSWDIR)\statusbr.obj \ @@ -73,11 +92,13 @@ COMMONOBJS = \ $(MSWDIR)\config.obj \ $(MSWDIR)\cmndata.obj \ $(MSWDIR)\docview.obj \ + $(MSWDIR)\docmdi.obj \ $(MSWDIR)\dynarray.obj \ $(MSWDIR)\event.obj \ $(MSWDIR)\file.obj \ $(MSWDIR)\fileconf.obj \ $(MSWDIR)\filefn.obj \ + $(MSWDIR)\framecmn.obj \ $(MSWDIR)\gdicmn.obj \ $(MSWDIR)\helpbase.obj \ $(MSWDIR)\intl.obj \ @@ -87,7 +108,6 @@ COMMONOBJS = \ $(MSWDIR)\memory.obj \ $(MSWDIR)\module.obj \ $(MSWDIR)\object.obj \ - $(MSWDIR)\odbc.obj \ $(MSWDIR)\postscrp.obj \ $(MSWDIR)\prntbase.obj \ $(MSWDIR)\resource.obj \ @@ -98,6 +118,7 @@ COMMONOBJS = \ $(MSWDIR)\utilscmn.obj \ $(MSWDIR)\validate.obj \ $(MSWDIR)\valtext.obj \ + $(MSWDIR)\variant.obj \ $(MSWDIR)\date.obj \ $(MSWDIR)\hash.obj \ $(MSWDIR)\list.obj \ @@ -108,12 +129,28 @@ COMMONOBJS = \ $(MSWDIR)\stream.obj \ $(MSWDIR)\fstream.obj \ $(MSWDIR)\mstream.obj \ + $(MSWDIR)\zstream.obj \ $(MSWDIR)\datstrm.obj \ - $(MSWDIR)\extended.obj - + $(MSWDIR)\sckstrm.obj \ + $(MSWDIR)\extended.obj \ + $(MSWDIR)\wincmn.obj \ + $(MSWDIR)\objstrm.obj \ + $(MSWDIR)\dynlib.obj \ + $(MSWDIR)\tokenzr.obj \ + $(MSWDIR)\socket.obj \ + $(MSWDIR)\sckaddr.obj \ + $(MSWDIR)\protocol.obj \ + $(MSWDIR)\url.obj \ + $(MSWDIR)\http.obj \ + $(MSWDIR)\ftp.obj \ + $(MSWDIR)\sckfile.obj \ + $(MSWDIR)\sckipc.obj + +# $(MSWDIR)\odbc.obj \ # $(MSWDIR)\matrix.obj \ MSWOBJS = \ + $(MSWDIR)\accel.obj \ $(MSWDIR)\app.obj \ $(MSWDIR)\bitmap.obj \ $(MSWDIR)\bmpbuttn.obj \ @@ -171,6 +208,7 @@ MSWOBJS = \ $(MSWDIR)\radiobut.obj \ $(MSWDIR)\region.obj \ $(MSWDIR)\registry.obj \ + $(MSWDIR)\regconf.obj \ $(MSWDIR)\scrolbar.obj \ $(MSWDIR)\settings.obj \ $(MSWDIR)\slidrmsw.obj \ @@ -194,8 +232,8 @@ MSWOBJS = \ $(MSWDIR)\window.obj \ $(MSWDIR)\droptgt.obj \ $(MSWDIR)\dropsrc.obj \ - $(MSWDIR)\dataobj.obj \ $(MSWDIR)\oleutils.obj \ + $(MSWDIR)\dataobj.obj \ $(MSWDIR)\uuid.obj OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) @@ -206,12 +244,30 @@ wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET) all: all_libs all_execs +!if "$(DLL)" == "0" + $(LIBTARGET): $(DUMMY).obj $(OBJECTS) $(BASEOBJECTS) - erase $(LIBTARGET) + erase $(LIBTARGET) tlib $(LIBTARGET) /P512 @&&! -+$(OBJECTS:.obj =.obj -+) -+$(BASEOBJECTS:.obj =.obj -+) -+$(PERIPH_LIBS:.lib =.lib -+) ! +!else + +$(LIBTARGET): $(DUMMY).obj $(OBJECTS) $(BASEOBJECTS) + erase $(LIBTARGET) + erase $(WXLIBDIR)\wx.dll + tlink32 $(LINK_FLAGS) /v @&&! +c0d32.obj $(OBJECTS) +$(WXLIBDIR)\wx +nul +$(PERIPH_LIBS) $(LIBS) +wxb32 +! + implib -c $(LIBTARGET) $(WXLIBDIR)\wx.dll + +!endif + dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h @@ -229,6 +285,8 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c #$(OBJECTS): $(WXDIR)\include\wx\setup.h +$(MSWDIR)\accel.obj: $(MSWDIR)\accel.$(SRCSUFF) + $(MSWDIR)\app.obj: $(MSWDIR)\app.$(SRCSUFF) $(MSWDIR)\bitmap.obj: $(MSWDIR)\bitmap.$(SRCSUFF) @@ -341,6 +399,8 @@ $(MSWDIR)\region.obj: $(MSWDIR)\region.$(SRCSUFF) $(MSWDIR)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF) +$(MSWDIR)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF) + $(MSWDIR)\scrolbar.obj: $(MSWDIR)\scrolbar.$(SRCSUFF) $(MSWDIR)\settings.obj: $(MSWDIR)\settings.$(SRCSUFF) @@ -402,8 +462,12 @@ $(MSWDIR)\cmndata.obj: $(COMMDIR)\cmndata.$(SRCSUFF) $(MSWDIR)\docview.obj: $(COMMDIR)\docview.$(SRCSUFF) +$(MSWDIR)\docmdi.obj: $(COMMDIR)\docmdi.$(SRCSUFF) + $(MSWDIR)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF) +$(MSWDIR)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF) + $(MSWDIR)\event.obj: $(COMMDIR)\event.$(SRCSUFF) $(MSWDIR)\file.obj: $(COMMDIR)\file.$(SRCSUFF) @@ -412,6 +476,8 @@ $(MSWDIR)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF) $(MSWDIR)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF) +$(MSWDIR)\framecmn.obj: $(COMMDIR)\framecmn.$(SRCSUFF) + $(MSWDIR)\gdicmn.obj: $(COMMDIR)\gdicmn.$(SRCSUFF) $(MSWDIR)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF) @@ -462,20 +528,48 @@ $(MSWDIR)\list.obj: $(COMMDIR)\list.$(SRCSUFF) $(MSWDIR)\string.obj: $(COMMDIR)\string.$(SRCSUFF) +$(MSWDIR)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF) + $(MSWDIR)\matrix.obj: $(COMMDIR)\matrix.$(SRCSUFF) $(MSWDIR)\time.obj: $(COMMDIR)\time.$(SRCSUFF) $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF) +$(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF) + $(MSWDIR)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF) +$(MSWDIR)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF) + $(MSWDIR)\fstream.obj: $(COMMDIR)\fstream.$(SRCSUFF) $(MSWDIR)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF) +$(MSWDIR)\objstrm.obj: $(COMMDIR)\objstrm.$(SRCSUFF) + +$(MSWDIR)\wincmn.obj: $(COMMDIR)\wincmn.$(SRCSUFF) + $(MSWDIR)\extended.obj: $(COMMDIR)\extended.c +$(MSWDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF) + +$(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF) + +$(MSWDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF) + +$(MSWDIR)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF) + +$(MSWDIR)\url.obj: $(COMMDIR)\url.$(SRCSUFF) + +$(MSWDIR)\http.obj: $(COMMDIR)\http.$(SRCSUFF) + +$(MSWDIR)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF) + +$(MSWDIR)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF) + +$(MSWDIR)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF) + ######################################################## # Generic objects (not always compiled, depending on # whether platforms have native implementations) @@ -490,6 +584,8 @@ $(MSWDIR)\gridg.obj: $(GENDIR)\gridg.$(SRCSUFF) $(MSWDIR)\helpxlp.obj: $(GENDIR)\helpxlp.$(SRCSUFF) +$(MSWDIR)\laywin.obj: $(GENDIR)\laywin.$(SRCSUFF) + $(MSWDIR)\msgdlgg.obj: $(GENDIR)\msgdlgg.$(SRCSUFF) $(MSWDIR)\panelg.obj: $(GENDIR)\panelg.$(SRCSUFF) @@ -498,6 +594,8 @@ $(MSWDIR)\printps.obj: $(GENDIR)\printps.$(SRCSUFF) $(MSWDIR)\prntdlgg.obj: $(GENDIR)\prntdlgg.$(SRCSUFF) +$(MSWDIR)\sashwin.obj: $(GENDIR)\sashwin.$(SRCSUFF) + $(MSWDIR)\scrolwin.obj: $(GENDIR)\scrolwin.$(SRCSUFF) $(MSWDIR)\splitter.obj: $(GENDIR)\splitter.$(SRCSUFF) @@ -543,6 +641,16 @@ wxxpm: $(CFG) make -f makefile.b32 -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG) cd $(WXDIR)\src\msw +zlib: $(CFG) + cd $(WXDIR)\src\zlib + make -f makefile.b32 lib + cd $(WXDIR)\src\msw + +clean_zlib: + cd $(WXDIR)\src\zlib + make -f makefile.b32 clean + cd $(WXDIR)\src\msw + $(CFG): makefile.b32 copy &&! -H=$(WXDIR)\src\msw\wx32.csm @@ -557,12 +665,13 @@ $(CFG): makefile.b32 -Oxt -WE --I$(WXINC);$(BCCDIR)\include --I$(WXDIR)\include\msw\gnuwin32 +-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib +-I$(WXDIR)\include\wx\msw\gnuwin32 -L$(BCCDIR)\lib -D__WXWIN__ -D__WXMSW__ +-D__WINDOWS__ -DWIN32 $(OPT) $(DEBUG_FLAGS)