]> git.saurik.com Git - wxWidgets.git/blob - src/makesc.env
fixed Mach-O compilation
[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 WXOUTDIR=$(WXDIR)\d_mars
7 INCDIR = $(WXDIR)\include
8 CONTRIBINCDIR = $(WXDIR)\contrib\include
9 MSWINCDIR = $(WXDIR)\include\wx\msw
10 ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
11 LIBDIR = $(WXDIR)\lib
12 WXLIB = wx$(SC_SUFFIX).lib
13 WINSOCKLIB = wsock32$(SC_SUFFIX)
14 SHELLLIB = shell32$(SC_SUFFIX)
15 WINMMLIB =winmm32$(SC_SUFFIX)
16 SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX) $(SHELLLIB) $(WINSOCKLIB) $(WINMMLIB)
17
18 SRCSUFF = cpp
19 OBJSUFF = obj
20
21 INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(CONTRIBINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
22
23
24
25 # default values
26
27 CC=dmc
28 RC=rcc
29
30 # WIN32 settings
31 # -H ... fix to use directory
32 ##CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
33 CFLAGS = -mn -D_WINDOWS -6 -a8 -Nc -c -H -HD$(WXOUTDIR) -HO- -DWXMSW -D__WIN32__ -D__WIN95__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
34 CPPFLAGS = -cpp -Ae -Ar
35
36 LINKER = link
37 # possible bug with putting d on any extralibs if we have debug and release versions one day
38 LDFLAGS = $(EXTRALDFLAGS)
39 LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid
40
41
42 .$(SRCSUFF).obj:
43 *$(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@
44
45 # -Jm: relaxed type checking only for .C files
46 .c.obj:
47 *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
48
49 .rc.res:
50 *$(RC) -D__NT__ -r $(INCLUDE) $<
51