]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | # Common settings for Symantec |
059b6462 CE |
2 | # and digital mars successor (http://www.digitalmars.com) |
3 | SC_SUFFIX=_sc | |
2bda0e17 | 4 | |
e81cf2eb | 5 | ####WXDIR = $(WXWIN) |
7d584866 | 6 | WXOUTDIR=$(WXDIR)\d_mars |
2bda0e17 | 7 | INCDIR = $(WXDIR)\include |
f4bf6763 | 8 | CONTRIBINCDIR = $(WXDIR)\contrib\include |
059b6462 CE |
9 | MSWINCDIR = $(WXDIR)\include\wx\msw |
10 | ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX) | |
2432b92d | 11 | LIBDIR = $(WXDIR)\lib |
ee252037 | 12 | WXLIB = wx$(SC_SUFFIX).lib |
05d3cd45 CE |
13 | WINSOCKLIB = wsock32$(SC_SUFFIX) |
14 | SHELLLIB = shell32$(SC_SUFFIX) | |
15 | SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX) $(SHELLLIB) $(WINSOCKLIB) | |
2bda0e17 KB |
16 | |
17 | SRCSUFF = cpp | |
18 | OBJSUFF = obj | |
19 | ||
f4bf6763 | 20 | INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(CONTRIBINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff |
059b6462 CE |
21 | |
22 | ||
2432b92d | 23 | |
2bda0e17 KB |
24 | # default values |
25 | ||
059b6462 CE |
26 | CC=dmc |
27 | RC=rcc | |
2432b92d | 28 | |
3f1af920 | 29 | # WIN32 settings |
059b6462 | 30 | # -H ... fix to use directory |
7d584866 CE |
31 | ##CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS) |
32 | CFLAGS = -mn -D_WINDOWS -6 -a8 -Nc -c -H -HD$(WXOUTDIR) -HO- -DWXMSW -D__WIN32__ -D__WIN95__ -D__WXDEBUG__ $(EXTRACPPFLAGS) | |
33 | CPPFLAGS = -cpp -Ae -Ar | |
34 | ||
059b6462 | 35 | LINKER = link |
f4bf6763 | 36 | # possible bug with putting d on any extralibs if we have debug and release versions one day |
4ded51f2 | 37 | LDFLAGS = $(EXTRALDFLAGS) |
05d3cd45 | 38 | LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid |
f4bf6763 | 39 | |
2bda0e17 KB |
40 | |
41 | .$(SRCSUFF).obj: | |
7d584866 | 42 | *$(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@ |
2432b92d | 43 | |
b911bc32 | 44 | # -Jm: relaxed type checking only for .C files |
2432b92d | 45 | .c.obj: |
059b6462 | 46 | *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@ |
2bda0e17 | 47 | |
3f1af920 | 48 | .rc.res: |
059b6462 | 49 | *$(RC) -D__NT__ -r $(INCLUDE) $< |
3f1af920 | 50 |