]> git.saurik.com Git - wxWidgets.git/blob - src/makesc.env
update to docs now minimal sample compiles
[wxWidgets.git] / src / makesc.env
1 # Common settings for Symantec
2 # and digital mars successor (http://www.digitalmars.com)
3 SC_SUFFIX=_sc
4
5 WXDIR = $(WXWIN)
6 INCDIR = $(WXDIR)\include
7 MSWINCDIR = $(WXDIR)\include\wx\msw
8 ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
9 LIBDIR = $(WXDIR)\lib
10 WXLIB = $(LIBDIR)\wx$(SC_SUFFIX).lib
11
12 SRCSUFF = cpp
13 OBJSUFF = obj
14
15 INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
16
17
18
19 # default values
20
21 CC=dmc
22 RC=rcc
23
24 # WIN16 settings
25 #CFLAGS = -Jm -ml -W -D__WXMSW__ -D__SC__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS)
26 #LINKER = link
27 #LDFLAGS = -ml -W -L$(LINKER).exe $(EXTRALDFLAGS)
28 #LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib # $(LIB)\ctl3dv2.lib
29 #DEFFILE=sc16.def
30
31 # WIN32 settings
32 # -H ... fix to use directory
33 CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
34 LINKER = link
35 LDFLAGS = /DELEXECUTABLE /RC $(EXTRALDFLAGS)
36 LIBS=$(WXLIB) $(EXTRALIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid
37 DEFFILE=sc32.def
38
39 .$(SRCSUFF).obj:
40 *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@
41
42 # -Jm: relaxed type checking
43 .c.obj:
44 *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
45
46 .rc.res:
47 *$(RC) -D__NT__ -r $(INCLUDE) $<
48