VPATH=@srcdir@
include ../../include/config.Makefile
Makefile: @srcdir@/Makefile.in ; cd ../.. && ./config.status libraries/M2/Makefile
all: @pre_librariesdir@/lib/libM2.so
%.lo: %.f ; $(COMPILE.f) -fPIC $< $(OUTPUT_OPTION)
%.lo: %.c ; $(COMPILE.c) -fPIC $< $(OUTPUT_OPTION)
%.lo: %.cc; $(COMPILE.cpp) -fPIC $< $(OUTPUT_OPTION)
%.so: %.lo; $(CC) $(LDFLAGS) $(TARGET_ARCH) -shared $^ $(OUTPUT_OPTION) -Wl,-e,$*_main
@pre_librariesdir@/lib:; $(MKDIR_P) "$@"
@pre_librariesdir@/lib/libM2.so : M2.so | @pre_librariesdir@/lib ; cp $< $@
uninstall clean::; rm -rf @pre_librariesdir@/lib/libM2.so
#Local Variables:
#compile-command: "make -C $M2BUILDDIR/libraries/M2 "
#End:
