OBJ = WinPlot.o Font.o PlotImage.o Commands.o Window.o Hooks.o
ARC = WinPlot.c Font.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) 
  slink  LIB:c.o+$(OBJ) to WinPlot \
  LIB LIB:scmieee.lib LIB:sc.lib LIB:amiga.lib \
  MAP WinPlot.MAP FHLSX \
  SC SD ND STRIPDEBUG

WinPlot.gst: struct.c
	sc $(OPT) NOOBJNAME MAKEGST=WinPlot.gst struct.c

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