#!make

all:  libs

DEBUG=1
ALBERTA_VERSION=2.0


# Compiler options
include ../../Make.opt

########################################################################
#   DFLAGS: DIM, DIM_OF_WORLD                                          #
########################################################################
DIM = 2
DIM_OF_WORLD = 2
NEIGH_IN_EL = 0
ALBERTA_DEBUG=1
# get installation details
 include ../../AlbertaNum/Makefile.PATHS
ifeq ($(ALBERTA_VERSION), 2.0)
  include $(prefix_mf)/Makefile.alberta
# alberta 1 kompatibilitt
  DFLAGS += -DDIM=$(DIM) -DALBERTA_VER=2
else
  include $(ALBERTA_INCLUDE_PATH)/Makefile.alberta
endif
########################################################################
#  modify default settings -- always use CXX
LD = g++

%.o: %.c
	$(CXX) $(DFLAGS) $(CPPFLAGS) $(CXXFLAGS) -I$(ALBERTA_INCLUDE_PATH) -c $<
%.o: %.cc
	$(CXX) $(DFLAGS) $(CPPFLAGS) $(CXXFLAGS) -I$(ALBERTA_INCLUDE_PATH) -c $<

########################################################################
#   set virtual path                                                   #
########################################################################
VPATH = ../Common
#eigentlich muesste alloc.o von DMALLOC=1 abhaengen...public_do_elfunc_on_el.o
OBJS =traverse.o operator_parts.o adapt.o alloc.o  error_c.o   graphics.o \
	master.o fem_base.o prototype_fem_elfunc.o fem_elfunc.o\
	est.o sys_est.o ellipt_est.o parab_est.o msg.o build_stat.o build_diff.o \
        build_sys.o sys_line_est.o solve_multiphase.o\
	periodic.o
prgs:

objs: $(OBJS)

libs:	libAlbertaNum2d.a

libAlbertaNum2d.a: $(OBJS)
	ar cru libAlbertaNum2d.a $^


clean:
	rm -f *.o core* *.a

.PHONY: all prgs libs objs clean

########################################################################
# semi-automatically generated by g++ -MM			       #
########################################################################

adapt.o: adapt.cc
alloc.o: alloc.c
build_diff.o: build_diff.cc newalberta.hh \
        traverse.hh build_diff.hh
#PE_elast braucht den Kaese
error_c.o: error_c.cc 
graphics.o: graphics.cc  master.hh newalberta.hh
master.o: master.cc newalberta.hh graphics.hh
parab_est.o: parab_est.cc newalberta.hh build_diff.hh \
  traverse.hh parab_est.hh
sys_line_est.o: sys_line_est.cc newalberta.hh \
  fem_base.hh traverse.hh est.hh \
  build_diff.hh parab_est.hh \
  sys_line_est.hh

