X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d05544e4e71e7ff10984dae5a9b8a07d92f42a6..55e18dbe2faca047b2008734782d52a6eb140115:/src/makesc.env diff --git a/src/makesc.env b/src/makesc.env index 064e1cbf02..11c7bbe736 100644 --- a/src/makesc.env +++ b/src/makesc.env @@ -1,41 +1,44 @@ # Common settings for Symantec +# and digital mars successor (http://www.digitalmars.com) +SC_SUFFIX=_sc -WXDIR = $(WXWIN) +####WXDIR = $(WXWIN) INCDIR = $(WXDIR)\include +MSWINCDIR = $(WXDIR)\include\wx\msw +ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX) LIBDIR = $(WXDIR)\lib -WXLIB = $(LIBDIR)\wx.lib +WXLIB = wx$(SC_SUFFIX).lib +WINSOCKLIB = wsock32$(SC_SUFFIX) +SHELLLIB = shell32$(SC_SUFFIX) +SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX) $(SHELLLIB) $(WINSOCKLIB) SRCSUFF = cpp OBJSUFF = obj -INCLUDE=$(INCDIR) +INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff + -# default values -CC=sc -RC=rc +# default values -# WIN16 settings -#CFLAGS = -Jm -ml -W -D__WXMSW__ -D__SC__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS) -#LINKER = link -#LDFLAGS = -ml -W -L$(LINKER).exe $(EXTRALDFLAGS) -#LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib # $(LIB)\ctl3dv2.lib -#DEFFILE=sc16.def +CC=dmc +RC=rcc # WIN32 settings -CFLAGS = -o -mn -W -D__NT__ -DWIN32 -D__WIN32__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS) -LINKER = link386 -LDFLAGS = -L$(LINKER).exe $(EXTRALDFLAGS) -LIBS=$(WXLIB) $(EXTRALIBS) ctl3d32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib kernel32.lib winmm.lib +# -H ... fix to use directory +CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS) +LINKER = link +LDFLAGS = $(EXTRALDFLAGS) +LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid DEFFILE=sc32.def .$(SRCSUFF).obj: - *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $< -o$@ + *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@ # -Jm: relaxed type checking .c.obj: - *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@ + *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@ .rc.res: - *$(RC) -r -I$(INCLUDE) $< + *$(RC) -D__NT__ -r $(INCLUDE) $<