]>
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 |
2bda0e17 KB |
11 | |
12 | SRCSUFF = cpp | |
13 | OBJSUFF = obj | |
14 | ||
059b6462 CE |
15 | INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff |
16 | ||
17 | ||
2432b92d | 18 | |
2bda0e17 KB |
19 | # default values |
20 | ||
059b6462 CE |
21 | CC=dmc |
22 | RC=rcc | |
2432b92d | 23 | |
3f1af920 | 24 | # WIN16 settings |
3d05544e | 25 | #CFLAGS = -Jm -ml -W -D__WXMSW__ -D__SC__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS) |
3f1af920 | 26 | #LINKER = link |
3d05544e JS |
27 | #LDFLAGS = -ml -W -L$(LINKER).exe $(EXTRALDFLAGS) |
28 | #LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib # $(LIB)\ctl3dv2.lib | |
3f1af920 JS |
29 | #DEFFILE=sc16.def |
30 | ||
31 | # WIN32 settings | |
059b6462 CE |
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 | |
3d05544e | 37 | DEFFILE=sc32.def |
2bda0e17 KB |
38 | |
39 | .$(SRCSUFF).obj: | |
059b6462 | 40 | *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@ |
2432b92d JS |
41 | |
42 | # -Jm: relaxed type checking | |
43 | .c.obj: | |
059b6462 | 44 | *$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@ |
2bda0e17 | 45 | |
3f1af920 | 46 | .rc.res: |
059b6462 | 47 | *$(RC) -D__NT__ -r $(INCLUDE) $< |
3f1af920 | 48 |