#h = ~/xtekplot1/h  # falls nicht schon im .profile oder .bashrc definiert
WARN = -Wall -Wno-unused-result -Wno-parentheses -Wno-sign-compare  # nach Wall koennen noch Ausnahmen geschaltet werden
#DEBUG= -ggdb -D _DEBUG # fuer den Gnu-Debugger
OPT  = -O3  #-O3 fuer moeglichst schnell?, -Os fuer moeglist kurz
CFLAGS  = -I$h $(WARN) $(OPT) $(DEBUG)
CXXFLAGS= $(CFLAGS)
LDFLAGS = -L/usr/X11R6/lib $(DEBUG)
MYLIBS  = $h/xtekplot1.o 
LDLIBS  = -lm -lX11

#CL=gcc -I$h -lm
CL=c++ -lm

all: mgcalculator mg

#mg: mgcalculator.cpp mgkern.cc mgkern.h
#	$(CL) mgcalculator.cpp mgkern.cc -o mg

mgcalculator: mgcalculator.cpp mgkern.cc mgkern.h
mg: mgcalculator
	cp -p mgcalculator mg

install:
	cp mg $(HOME)/bin/

clean:
	rm -f *~
clean_all:
	rm -f *~ \#* mg mgcalculator
