# @configure_input@
include ../../include/config.Makefile
vpath %.a  $(BUILTLIBPATH)/lib
vpath %.so $(BUILTLIBPATH)/lib
VPATH = @srcdir@
EXES := echoout timestmp
CPPFLAGS :=  -I. -I../../include $(CPPFLAGS)

all: $(EXES)
clean:
	rm -f gmon.out $(EXES) *.o $(EXES:=.exe) $(EXES:=.obj) gc_tested gc_test
	rm -rf *.dSYM
../bin/linkexec : linkexec ; cp -a $< $@

distclean : clean; rm -f Makefile
Makefile : Makefile.in; cd ../..; ./config.status Macaulay2/util/Makefile
# gc_test
CPPFLAGS += -I@srcdir@/../../include
all: gc_tested
gc_test : gc_test.c
gc_test : LDLIBS += @LIBS@ @BUILTLIBS@

gc_tested: gc_test; LD_LIBRARY_PATH="$(BUILTLIBPATH)/lib:$(LD_LIBRARY_PATH)" ./$< && touch $@
# Local Variables:
# compile-command: "make -C $M2BUILDDIR/Macaulay2/util "
# End:
.NOTPARALLEL:
