ee252037cf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Common settings for Symantec
|
|
# and digital mars successor (http://www.digitalmars.com)
|
|
SC_SUFFIX=_sc
|
|
|
|
WXDIR = $(WXWIN)
|
|
INCDIR = $(WXDIR)\include
|
|
MSWINCDIR = $(WXDIR)\include\wx\msw
|
|
ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
|
|
LIBDIR = $(WXDIR)\lib
|
|
WXLIB = wx$(SC_SUFFIX).lib
|
|
WINSOCKLIB = $(LIBDIR)\winsock$(SC_SUFFIX).lib
|
|
SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX)
|
|
|
|
SRCSUFF = cpp
|
|
OBJSUFF = obj
|
|
|
|
INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
|
|
|
|
|
|
|
|
# default values
|
|
|
|
CC=dmc
|
|
RC=rcc
|
|
|
|
# WIN32 settings
|
|
# -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 $(WINSOCKLIB)
|
|
DEFFILE=sc32.def
|
|
|
|
.$(SRCSUFF).obj:
|
|
*$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@
|
|
|
|
# -Jm: relaxed type checking
|
|
.c.obj:
|
|
*$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
|
|
|
|
.rc.res:
|
|
*$(RC) -D__NT__ -r $(INCLUDE) $<
|
|
|