
GLIB=/Lib/gengui_lnk.o
GenGui=/Bin/gengui
CFLAGS=IDIR /lib

all: glib mux border palette xarc plot subgui jumpwin frame

glib:
   execute <<
cd /Lib
smake
<

mux: mux.o $(GLIB)
   sc mux.o $(GLIB) link to mux

mux.o: test.c mux.h
   sc $(CFLAGS) objname mux.o test.c def TITLE="Multiplexdemo" def GUINAME="mux.h"

mux.h: mux.gui
   $(GenGui) mux.gui

subgui: subgui.o $(GLIB)
   sc subgui.o $(GLIB) link to subgui

subgui.o: test.c subgui.h
   sc $(CFLAGS) objname subgui.o test.c def TITLE="Multiplexdemo" def GUINAME="subgui.h"

subgui.h: subgui.gui
   $(GenGui) subgui.gui


frame: frame.o $(GLIB)
   sc frame.o $(GLIB) link to frame

frame.o: test.c frame.h
   sc $(CFLAGS) objname frame.o test.c def TITLE="Framedemo" def GUINAME="frame.h"

frame.h: frame.gui
   $(GenGui) frame.gui


plot: plot.o $(GLIB)
   sc plot.o $(GLIB) link to plot

plot.o: test.c plot.h
   sc $(CFLAGS) objname plot.o test.c def TITLE="Plotdemo" def GUINAME="plot.h" def TestPro=Plot

plot.h: plot.gui
   $(GenGui) plot.gui


border: border.o $(GLIB)
   sc border.o $(GLIB) link to border

border.o: test.c border.h
   sc $(CFLAGS) objname border.o test.c def TITLE="Customdemo" def GUINAME="border.h"

border.h: border.gui
   $(GenGui) border.gui


palette: palette.o $(GLIB)
   sc palette.o $(GLIB) link to palette

palette.o: palette.c palette.h
   sc $(CFLAGS) objname palette.o palette.c

palette.h: palette.gui
   $(GenGui) palette.gui


xarc: xarc.o $(GLIB)
   sc xarc.o $(GLIB) link to xarc

xarc.o: test.c xarc.h
   sc $(CFLAGS) objname xarc.o test.c def TITLE="XArcToolGUI" def GUINAME="xarc.h"

xarc.h: xarc.gui
   $(GenGui) xarc.gui


steuer: steuer.o $(GLIB)
   sc steuer.o $(GLIB) link to steuer

steuer.o: test.c steuer.h
   sc $(CFLAGS) objname steuer.o test.c def TITLE="Steuer" def GUINAME="steuer.h"

steuer.h: steuer.gui
   $(GenGui) steuer.gui


jumpwin: jumpwin.o $(GLIB)
   sc jumpwin.o $(GLIB) link to jumpwin

jumpwin.o: jumpwin.c jumpwin.h
   sc $(CFLAGS) objname jumpwin.o jumpwin.c

jumpwin.h: jumpwin.gui
   $(GenGui) jumpwin.gui


clean:
   execute <<
   delete \#?.o
   delete `list \#?.gui lformat "(%m.h)"`
   set RC 0
<
