# @configure_input@
VPATH = @srcdir@

all: supervisor.o m2file.o tests.o
include ../../include/config.Makefile

%.dep: %.cpp
	$(SHOW) " ** creating $@ from $<"
	$(HIDE) @CXX@ -MM -MP $(CPPFLAGS) $(CXXFLAGS) -DDEPENDS=1 $< >$*-tmp.dep && <$*-tmp.dep sed 's/\($*\)\.o[ :]*/\1.o $@ : /' >$@ && rm $*-tmp.dep
ifneq ($(DEPENDS),no)
include supervisor.dep
include m2file.dep
include tests.dep
endif
CPPFLAGS := -I@srcdir@ -I../d -I@srcdir@/../e $(CPPFLAGS) -I@srcdir@/../d -I@srcdir@/../c
.PHONY: tags
scCMD = $(COMPILE.c) -S $(OUTPUT_OPTION) $<
%.s : %.c
	$(SHOW) " ** compiling $< to assembly code, making $@"
	$(HIDE) $(scCMD)
EcCMD = $(COMPILE.c) -E $(OUTPUT_OPTION) $<
%.E : %.c
	$(SHOW) " ** preprocessing $<, making $@"
	$(HIDE) $(EcCMD)
%.dep: %.c
	$(SHOW) " ** creating $@ from $<"
	$(HIDE) @CC@  -MM $(CPPFLAGS) $< >$*-tmp.dep && <$*-tmp.dep sed 's/\($*\)\.o[ :]*/\1.o $@ : /' >$@ && rm $*-tmp.dep

# @srcdir@/TAGS: $(HFILES) $(CCFILES); cd @srcdir@ && @ETAGS@ $(HFILES) $(CCFILES)
# DEPENDS = yes
# ifneq (@ETAGS@,false)
# all: tags
# endif
# tags:: @srcdir@/TAGS
clean :: ; rm -f *.o *.dep *.s *.E LOGFILE
Makefile: Makefile.in; cd ../..; ./config.status Macaulay2/system/Makefile
distclean::; rm -f Makefile

# how was this test file supposed to work?
LDLIBS += -lgc -lpthread
#check : tests; ./tests
tests : tests.o supervisor.o
	$(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@

# Local Variables:
# compile-command: "make -C $M2BUILDDIR/Macaulay2/system "
# End:
.NOTPARALLEL:
