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