X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fd284a4a09793c29078296529d3e9db5acd0a0f..abfcca57dd0d805ceec9e19c4be207614d79252a:/src/msw/makefile.sl diff --git a/src/msw/makefile.sl b/src/msw/makefile.sl index 0bf8a3c46a..223b7608be 100644 --- a/src/msw/makefile.sl +++ b/src/msw/makefile.sl @@ -5,79 +5,24 @@ # # Makefile : Builds wxWindows library for Salford C++, WIN32 -# include $(WXDIR)\src\makesl.env - -FINAL=0 -SALFORDDIR=i:\salfordc - -.SUFFIXES: -.SUFFIXES: .exe .obj .c .cc .cpp .res .rc .def .lib - -#WXDIR = d:\wx2\wxwind~1 -WXDIR = $(WXWIN) -WXINC = $(WXDIR)\include - -# Suffixes -OBJSUFF=obj -SRCSUFF=cpp - -DEBUGFLAGS = /DEFINE __WXDEBUG__ - -RC = src - -CCC = scc -CC = scc -MODEL = -# If you use win95, assumptions will be made about Win95 icon format etc. -# so nt_win is probably better for simultaneous Win32s/Win95/NT operation. -LINKOPTION = nt_win # win95 -BINDCOMMAND = wrc -WATLIBDIR = $(WATCOMDIR)\lib386\nt -MINDATA = -MAXDATA = -STACK = -# EXTRALIBS = $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\xpm.lib & -# $(WATLIBDIR)\odbc32.lib $(WATLIBDIR)\comctl32.lib $(WATLIBDIR)\comdlg32.lib & -# $(WATLIBDIR)\ole32.lib $(WATLIBDIR)\oleaut32.lib $(WATLIBDIR)\uuid.lib -IFLAGS = /INCLUDE $(WXINC) /INCLUDE $(SALFORDDIR)\include -#RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include -#RESFLAGS2 = -R $(name) /i$(WXDIR)\include - -OPTFLAGS= - -# /d1 for line numbers only: anything else produces an enormous wx32.lib -CPPFLAGS = /WINDOWS /ERROR_NUMBERS /DELETE_OBJ_ON_ERROR /DEFINE WIN32 /DEFINE __WIN32__ /DEFINE __WIN95__ /DEFINE __WINDOWS__ /DEFINE __WXMSW__ /DEFINE __SALFORDC__ $(OPTFLAGS) $(DEBUGFLAGS) $(EXTRACPPFLAGS) - -#.cpp.obj: -# echo Compiling! -# $(CCC) $(CPPFLAGS) $(IFLAGS) $@ $*.cpp - -#.c.obj: # $< # .AUTODEPEND -# $(CC) $(CPPFLAGS) $(IFLAGS) $@ $*.cpp - - - -WXLIB = $(WXDIR)\lib +include ..\makesl.env LIBTARGET = $(WXLIB)\wx.lib -DUMMY=dummydll -# ODBCLIB = ..\..\contrib\odbc\odbc32.lib - -EXTRATARGETS = xpm png zlib -EXTRATARGETSCLEAN = clean_xpm clean_png clean_zlib +EXTRATARGETS = # xpm png zlib +EXTRATARGETSCLEAN = # clean_xpm clean_png clean_zlib GENDIR=$(WXDIR)\src\generic COMMDIR=$(WXDIR)\src\common XPMDIR=$(WXDIR)\src\xpm OLEDIR=ole MSWDIR=$(WXDIR)\src\msw -DOCDIR = $(WXDIR)\docs - GENERICOBJS= choicdgg.obj \ + dirdlgg.obj \ gridg.obj \ laywin.obj \ panelg.obj \ prop.obj \ + progdlgg.obj \ propform.obj \ proplist.obj \ sashwin.obj \ @@ -94,11 +39,11 @@ NONESSENTIALOBJS= printps.obj \ msgdlgg.obj \ helpxlp.obj \ colrdlgg.obj \ - fontdlgg.obj \ - postscrp.obj + fontdlgg.obj COMMONOBJS = cmndata.obj \ config.obj \ + dcbase.obj \ docview.obj \ docmdi.obj \ dynarray.obj \ @@ -116,7 +61,6 @@ COMMONOBJS = cmndata.obj \ layout.obj \ log.obj \ memory.obj \ - mimetype.obj \ module.obj \ object.obj \ prntbase.obj \ @@ -127,12 +71,15 @@ COMMONOBJS = cmndata.obj \ timercmn.obj \ utilscmn.obj \ validate.obj \ + valgen.obj \ valtext.obj \ date.obj \ hash.obj \ list.obj \ + paper.obj \ string.obj \ socket.obj \ + sckint.obj \ sckaddr.obj \ sckfile.obj \ sckipc.obj \ @@ -153,9 +100,11 @@ COMMONOBJS = cmndata.obj \ datstrm.obj \ objstrm.obj \ variant.obj \ - wincmn.obj + wincmn.obj \ + wxchar.obj # Can't compile these yet under Salford C++ +# mimetype.obj \ # odbc.obj \ # db.obj \ # dbtable.obj \ @@ -169,6 +118,7 @@ MSWOBJS = \ button.obj \ checkbox.obj \ checklst.obj \ + caret.obj \ choice.obj \ clipbrd.obj \ colordlg.obj \ @@ -187,7 +137,6 @@ MSWOBJS = \ dialog.obj \ dib.obj \ dibutils.obj \ - dirdlg.obj \ filedlg.obj \ font.obj \ fontdlg.obj \ @@ -238,14 +187,17 @@ MSWOBJS = \ textctrl.obj \ thread.obj \ timer.obj \ + tooltip.obj \ treectrl.obj \ utils.obj \ utilsexc.obj \ wave.obj \ - window.obj \ - xpmhand.obj + window.obj +# No OLE functions for wxDirDialog: use generic one instead +# dirdlg.obj \ # pnghand.obj \ +# xpmhand.obj \ OLEOBJS = \ droptgt.obj \ @@ -256,23 +208,18 @@ OLEOBJS = \ automtn.obj # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. -OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(OLEOBJS) +OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) # $(OLEOBJS) all: $(OBJECTS) $(LIBTARGET) $(EXTRATARGETS) $(LIBTARGET) : $(OBJECTS) - %create tmp.lnk - @%append tmp.lnk archive $(LIBTARGET) - @for %i in ( $(OBJECTS) ) do @%append tmp.lnk addobj %i - @%append file - slink @tmp.lnk + slink $$salford.lnk clean: $(EXTRATARGETSCLEAN) -erase *.obj -erase $(LIBTARGET) -erase *.pch -erase *.err - -erase *.lnk cleanall: clean @@ -299,6 +246,9 @@ brush.obj: $(MSWDIR)\brush.cpp button.obj: $(MSWDIR)\button.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\button.cpp /BINARY button.obj +caret.obj: $(MSWDIR)\caret.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\caret.cpp /BINARY caret.obj + choice.obj: $(MSWDIR)\choice.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\choice.cpp /BINARY choice.obj @@ -383,12 +333,18 @@ gaugemsw.obj: $(MSWDIR)\gaugemsw.cpp gdiobj.obj: $(MSWDIR)\gdiobj.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\gdiobj.cpp /BINARY gdiobj.obj +helpwin.obj: $(MSWDIR)\helpwin.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\helpwin.cpp /BINARY helpwin.obj + icon.obj: $(MSWDIR)\icon.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\icon.cpp /BINARY icon.obj imaglist.obj: $(MSWDIR)\imaglist.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\imaglist.cpp /BINARY imaglist.obj +iniconf.obj: $(MSWDIR)\iniconf.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\iniconf.cpp /BINARY iniconf.obj + joystick.obj: $(MSWDIR)\joystick.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\joystick.cpp /BINARY joystick.obj @@ -417,7 +373,7 @@ minifram.obj: $(MSWDIR)\minifram.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\minifram.cpp /BINARY minifram.obj msgdlg.obj: $(MSWDIR)\msgdlg.cpp - $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\msgdlg.cpp /BINARY mdgdlg.obj + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\msgdlg.cpp /BINARY msgdlg.obj nativdlg.obj: $(MSWDIR)\nativdlg.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\nativdlg.cpp /BINARY nativdlg.obj @@ -471,7 +427,7 @@ slidrmsw.obj: $(MSWDIR)\slidrmsw.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\slidrmsw.cpp /BINARY slidrmsw.obj slider95.obj: $(MSWDIR)\slider95.cpp - $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\slider95.cpp /BINARY slider.obj + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\slider95.cpp /BINARY slider95.obj spinbutt.obj: $(MSWDIR)\spinbutt.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\spinbutt.cpp /BINARY spinbutt.obj @@ -510,6 +466,9 @@ thread.obj: $(MSWDIR)\thread.cpp timer.obj: $(MSWDIR)\timer.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\timer.cpp /BINARY timer.obj +tooltip.obj: $(MSWDIR)\tooltip.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\tooltip.cpp /BINARY tooltip.obj + treectrl.obj: $(MSWDIR)\treectrl.cpp cl @<< $(CCC) $(CPPFLAGS) $(IFLAGS) $(MSWDIR)\treectrl.cpp /BINARY treectrl.obj @@ -556,6 +515,9 @@ cmndata.obj: $(COMMDIR)\cmndata.cpp config.obj: $(COMMDIR)\config.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\config.cpp /BINARY config.obj +dcbase.obj: $(COMMDIR)\dcbase.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\dcbase.cpp /BINARY dcbase.obj + db.obj: $(COMMDIR)\db.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\db.cpp /BINARY db.obj @@ -625,9 +587,6 @@ object.obj: $(COMMDIR)\object.cpp odbc.obj: $(COMMDIR)\odbc.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\odbc.cpp /BINARY odbc.obj -postscrp.obj: $(COMMDIR)\postcrp.cpp - $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\postcrp.cpp /BINARY postscrp.obj - prntbase.obj: $(COMMDIR)\prntbase.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\prntbase.cpp /BINARY prntbase.obj @@ -652,6 +611,9 @@ utilscmn.obj: $(COMMDIR)\utilscmn.cpp validate.obj: $(COMMDIR)\validate.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\validate.cpp /BINARY validate.obj +valgen.obj: $(COMMDIR)\valgen.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\valgen.cpp /BINARY valgen.obj + valtext.obj: $(COMMDIR)\valtext.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\valtext.cpp /BINARY valtext.obj @@ -667,12 +629,18 @@ hash.obj: $(COMMDIR)\hash.cpp list.obj: $(COMMDIR)\list.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\list.cpp /BINARY list.obj +paper.obj: $(COMMDIR)\paper.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\paper.cpp /BINARY paper.obj + string.obj: $(COMMDIR)\string.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\string.cpp /BINARY string.obj socket.obj: $(COMMDIR)\socket.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\socket.cpp /BINARY socket.obj +sckint.obj: $(COMMDIR)\sckint.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\sckint.cpp /BINARY sckint.obj + sckaddr.obj: $(COMMDIR)\sckaddr.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\sckaddr.cpp /BINARY sckaddr.obj @@ -683,7 +651,7 @@ sckipc.obj: $(COMMDIR)\sckipc.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\sckipc.cpp /BINARY sckipc.obj sckstrm.obj: $(COMMDIR)\sckstrm.cpp - $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\sckstrm.cpp /BINARY sockstrm.obj + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\sckstrm.cpp /BINARY sckstrm.obj url.obj: $(COMMDIR)\url.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\url.cpp /BINARY url.obj @@ -701,7 +669,7 @@ matrix.obj: $(COMMDIR)\matrix.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\matrix.cpp /BINARY matrix.obj time.obj: $(COMMDIR)\time.cpp - $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\time.cpp /BINARY timer.obj + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\time.cpp /BINARY time.obj stream.obj: $(COMMDIR)\stream.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\stream.cpp /BINARY stream.obj @@ -733,6 +701,9 @@ variant.obj: $(COMMDIR)\variant.cpp wincmn.obj: $(COMMDIR)\wincmn.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\wincmn.cpp /BINARY wincmn.obj +wxchar.obj: $(COMMDIR)\wxcharp.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(COMMDIR)\wxchar.cpp /BINARY wxchar.obj + ######################################################## # Generic objects (not always compiled, depending on # whether platforms have native implementations) @@ -743,6 +714,9 @@ choicdgg.obj: $(GENDIR)\choicdgg.cpp colrdlgg.obj: $(GENDIR)\colrdgg.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\colrdgg.cpp /BINARY colordgg.obj +dirdlgg.obj: $(GENDIR)\dirdlgg.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\dirdlgg.cpp /BINARY dirdlgg.obj + fontdlgg.obj: $(GENDIR)\fontdlgg.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\fontdlgg.cpp /BINARY fontdlgg.obj @@ -764,6 +738,9 @@ panelg.obj: $(GENDIR)\panelg.cpp printps.obj: $(GENDIR)\printps.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\printps.cpp /BINARY printps.obj +progdlgg.obj: $(GENDIR)\progdlgg.cpp + $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\progdlgg.cpp /BINARY progdlgg.obj + prop.obj: $(GENDIR)\prop.cpp $(CCC) $(CPPFLAGS) $(IFLAGS) $(GENDIR)\prop.cpp /BINARY prop.obj @@ -911,9 +888,7 @@ zutil.obj: zutil.c zutil.h zlib.h zconf.h y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c - $(CC) $(CPPFLAGS) $(IFLAGS) -DUSE_DEFINE $(COMMDIR)\y_tab.c - -# *$(CC) $(CPPFLAGS) $(IFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS $(COMMDIR)\y_tab.c + $(CC) /ANSI_C $(CPPFLAGS) $(IFLAGS) /DEFINE USE_DEFINE $(COMMDIR)\y_tab.c /BINARY y_tab.obj $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c @@ -921,32 +896,32 @@ $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c -xpm: .SYMBOLIC +xpm: cd $(WXDIR)\src\xpm wmake -f makefile.wat all cd $(WXDIR)\src\msw -clean_xpm: .SYMBOLIC +clean_xpm: cd $(WXDIR)\src\xpm wmake -f makefile.wat clean cd $(WXDIR)\src\msw -png: .SYMBOLIC +png: cd $(WXDIR)\src\png wmake -f makefile.wat all cd $(WXDIR)\src\msw -clean_png: .SYMBOLIC +clean_png: cd $(WXDIR)\src\png wmake -f makefile.wat clean cd $(WXDIR)\src\msw -zlib: .SYMBOLIC +zlib: cd $(WXDIR)\src\zlib wmake -f makefile.wat all cd $(WXDIR)\src\msw -clean_zlib: .SYMBOLIC +clean_zlib: cd $(WXDIR)\src\zlib wmake -f makefile.wat clean cd $(WXDIR)\src\msw