fix some more samples for digital mars [allow contrib to work]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2003-06-13 20:30:52 +00:00
parent 70024cfb08
commit f4bf676380
5 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
#Digital Mars (was Symantec) C++ makefile
WXDIR = ..\..\..
EXTRALIBS=svg_sc
TARGET=svgtest
OBJECTS = $(TARGET).obj
include $(WXDIR)\src\makeprog.sc

View File

@@ -0,0 +1,20 @@
##############################################################################
# Name: src/zlib/makefile.sc
# Purpose: build zlib Digital Mars 8.33 compiler
# Author: Chris Elliott
# Created: 21.01.03
# RCS-ID: $Id$
# Licence: wxWindows licence
##############################################################################
WXDIR = ..\..\..
include $(WXDIR)\src\makesc.env
LIBTARGET=$(WXDIR)\lib\svg$(SC_SUFFIX).lib
THISDIR=$(WXDIR)\contrib\src\svg
# variables
OBJECTS = \
$(THISDIR)\dcsvg.obj
include $(WXDIR)\src\makelib.sc

6
samples/svg/makefile.sc Normal file
View File

@@ -0,0 +1,6 @@
#Digital Mars (was Symantec) C++ makefile
WXDIR = ..\..\..
EXTRALIBS=svg_sc
TARGET=svgtest
OBJECTS = $(TARGET).obj
include $(WXDIR)\src\makeprog.sc

View File

@@ -7,7 +7,7 @@ INCLUDE=$(INCDIR)
include $(WXDIR)\src\makesc.env
$(TARGET).exe: $(OBJECTS) $(TARGET).res
link $(LDFLAGS) /DELEXECUTABLE /RC $(OBJECTS), $@, $*, $(LIBDIR)\ $(LIBS)
link $(LDFLAGS) /DELEXECUTABLE /RC -L/exet:nt/su:windows $(OBJECTS), $@, $*, $(LIBDIR)\ $(LIBS)
clean:

View File

@@ -4,6 +4,7 @@ SC_SUFFIX=_sc
####WXDIR = $(WXWIN)
INCDIR = $(WXDIR)\include
CONTRIBINCDIR = $(WXDIR)\contrib\include
MSWINCDIR = $(WXDIR)\include\wx\msw
ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
LIBDIR = $(WXDIR)\lib
@@ -15,7 +16,7 @@ SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX)
SRCSUFF = cpp
OBJSUFF = obj
INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(CONTRIBINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
@@ -28,9 +29,10 @@ RC=rcc
# -H ... fix to use directory
CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
LINKER = link
# possible bug with putting d on any extralibs if we have debug and release versions one day
LDFLAGS = $(EXTRALDFLAGS)
LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid
DEFFILE=sc32.def
.$(SRCSUFF).obj:
*$(CC) -c $(CFLAGS) $(INCLUDE) $(OPTIONS) $< -o$@