#C=gcc
C=c++ -I$h
L=c++ -lm -lX11 -L/usr/X11R6/lib
#F=f90
F=g77

programs: sinus beispiel1 beispiel1b beispiel1c beispiel2 beispiel3 beispiel3b beispiel3c hanoi xvollbildtest beispiel1f

sinus: sinus.c
	$L -I$h sinus.c $h/xtekplot1.o -o sinus

beispiel1: beispiel1.c
	$L -I$h beispiel1.c $h/xtekplot1.o -o beispiel1

beispiel1b: beispiel1b.c
	$L -I$h beispiel1b.c $h/xtekplot1.o -o beispiel1b

beispiel1c: beispiel1c.c
	$L -I$h beispiel1c.c $h/xtekplot1.o -o beispiel1c

beispiel2: beispiel2.c
	$L -I$h beispiel2.c $h/xtekplot1.o -o beispiel2

beispiel3: beispiel3.c
	$L -I$h beispiel3.c $h/xtekplot1.o -o beispiel3

beispiel3b: beispiel3b.c
	$L -I$h beispiel3b.c $h/xtekplot1.o -o beispiel3b

beispiel3c: beispiel3c.c
	$L -I$h beispiel3c.c $h/xtekplot1.o -o beispiel3c

hanoi: hanoi.cc
	$L -I$h hanoi.cc $h/xtekplot1.o -o hanoi

xvollbildtest: xvollbildtest.cc
	$L -I$h xvollbildtest.cc $h/xtekplot1.o -o xvollbildtest

beispiel1f: beispiel1f.o
	$L beispiel1f.o $h/xtekplot1.o $h/xtekplot_for.o -o beispiel1f
beispiel1f.o: beispiel1f.for
	$F beispiel1f.for -c

clean:
	rm -f beispiel1 beispiel1? beispiel2 beispiel3 beispiel3? sinus hanoi
	rm -f xvollbildtest
	rm -f *.o *~
