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