]>
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 KB |
4 | |
5 | WXDIR = $(WXWIN) | |
6 | INCDIR = $(WXDIR)\include | |
059b6462 CE |
7 | MSWINCDIR = $(WXDIR)\include\wx\msw |
8 | ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX) | |
2432b92d | 9 | LIBDIR = $(WXDIR)\lib |
059b6462 | 10 | WXLIB = $(LIBDIR)\wx$(SC_SUFFIX).lib |
4ded51f2 CE |
11 | WINSOCKLIB = $(LIBDIR)\winsock$(SC_SUFFIX).lib |
12 | SUPPORTLIBS = $(LIBDIR)\png$(SC_SUFFIX).lib $(LIBDIR)\tiff$(SC_SUFFIX).lib $(LIBDIR)\jpeg$(SC_SUFFIX).lib $(LIBDIR)\zlib$(SC_SUFFIX).lib | |
2bda0e17 KB |
13 | |
14 | SRCSUFF = cpp | |
15 | OBJSUFF = obj | |
16 | ||
059b6462 CE |
17 | INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff |
18 | ||
19 | ||
2432b92d | 20 | |
2bda0e17 KB |
21 | # default values |
22 | ||
059b6462 CE |
23 | CC=dmc |
24 | RC=rcc | |
2432b92d | 25 | |
3f1af920 | 26 | # WIN32 settings |
059b6462 CE |
27 | # -H ... fix to use directory |
28 | CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS) | |
29 | LINKER = link | |
4ded51f2 CE |
30 | LDFLAGS = $(EXTRALDFLAGS) |
31 | LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid $(WINSOCKLIB) | |
3d05544e | 32 | DEFFILE=sc32.def |
2bda0e17 KB |
33 | |
34 | .$(SRCSUFF).obj: | |
059b6462 | 35 | *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@ |
2432b92d JS |
36 | |
37 | # -Jm: relaxed type checking | |
38 | .c.obj: | |
059b6462 | 39 | *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@ |
2bda0e17 | 40 | |
3f1af920 | 41 | .rc.res: |
059b6462 | 42 | *$(RC) -D__NT__ -r $(INCLUDE) $< |
3f1af920 | 43 |