OBJ = WinPlot.o OutlineFont.o PlotImage.o Commands.o Window.o Hooks.o
ARC = WinPlot.c OutlineFont.c PlotImage.c struct.c SMakeFile 

OPT = 	VERBOSE UNSCHAR STRMERGE STREQ CPU=ANY OPTIMIZE OPTIMIZERINLINELOCAL \
	UTILITYLIBRARY OPTIMIZERTIME OPTIMIZERALIAS OPTIMIZERCOMPLEXITY=30 \
	OPTIMIZERDEPTH=5 OPTIMIZERRECURDEPTH=3 CONSTLIBBASE DEF=__USE_SYSBASE \
	MATH=IEEE

#OPT =	VERBOSE UNSCHAR STRMERGE STREQ CPU=ANY DEBUG=SF UTILITYLIBRARY CONSTLIBBASE \
#	DEF=__USE_SYSBASE MATH=IEEE 

.c.o:
	sc $(OPT) GST=WinPlot.gst $*.c

WinPlot: $(OBJ) SMakeFile
  slink LIB:c.o+$(OBJ) to WinPlot \
  LIB LIB:scmieee.lib LIB:sc.lib LIB:amiga.lib \
  MAP WinPlot.MAP FHLSX \
  SC SD ND 
#  ADDSYM \
#  LIB LIB:debug.lib LIB:memwatch.lib 

WinPlot.gst: struct.c
	sc DEF=__USE_SYSBASE UNSCHAR NOOBJNAME MAKEGST=WinPlot.gst struct.c

WinPlot.o: WinPlot.c amigawin.h WinPlot.h WinPlot.gst
OutlineFont.o: OutlineFont.c OutlineFont.h WinPlot.gst
PlotImage.o: PlotImage.c amigawin.h WinPlot.h WinPlot.gst
Commands.o: Commands.c WinPlot.h OutlineFont.h WinPlot.gst
Window.o: Window.c WinPlot.h WinPlot.gst
Hooks.o: Hooks.c WinPlot.h WinPlot.gst
