You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
890 B
45 lines
890 B
2 years ago
|
include ../Makefile.in
|
||
|
|
||
|
CURBUILDDIR = $(TSTBUILDDIR)
|
||
|
|
||
|
|
||
|
MTESTSRC = mtest.c
|
||
|
|
||
|
MTESTOBJS = $(patsubst %.c, $(CURBUILDDIR)/%$(OBJEXT), $(MTESTSRC))
|
||
|
EXTRAOBJS = $(PRGBUILDDIR)/io$(OBJEXT)
|
||
|
|
||
|
ALLOBJS = $(patsubst %.c, $(CURBUILDDIR)/%$(OBJEXT), $(wildcard *.c))
|
||
|
HEADERS = $(wildcard *.h) $(TOPDIR)/include/metis.h
|
||
|
|
||
|
LIBRARIES = $(BUILDDIR)/libmetis$(LIBEXT)
|
||
|
|
||
|
INCLUDES += -I$(TOPDIR)/libmetis
|
||
|
|
||
|
TARGETS = $(BUILDDIR)/mtest$(VERNUM)$(EXEEXT)
|
||
|
|
||
|
|
||
|
default: $(TARGETS)
|
||
|
|
||
|
|
||
|
$(BUILDDIR)/mtest$(VERNUM)$(EXEEXT): $(MTESTOBJS) $(LIBRARIES)
|
||
|
$(LD) $(LDOPTIONS) $(EXEOUTPUTFILE) $(MTESTOBJS) $(EXTRAOBJS) $(LIBSDIR) $(LIBS)
|
||
|
chmod 744 $@
|
||
|
@if [ "$(BINDIR)" ]; then cp $@* $(BINDIR); fi
|
||
|
|
||
|
|
||
|
clean:
|
||
|
rm -f $(ALLOBJS)
|
||
|
|
||
|
realclean:
|
||
|
rm -f $(ALLOBJS) $(TARGETS)
|
||
|
rm -fr $(BUILDDIR)
|
||
|
|
||
|
|
||
|
|
||
|
$(ALLOBJS) : $(HEADERS) ../Makefile.in Makefile
|
||
|
|
||
|
$(CURBUILDDIR)/%$(OBJEXT) : %.c
|
||
|
$(CC) $(CFLAGS) $(SOURCEFILE) $(OUTPUTFILE)
|
||
|
|
||
|
|