69 lines
818 B
Makefile
Executable file
69 lines
818 B
Makefile
Executable file
#
|
|
# $Source$
|
|
# $Author$
|
|
# $Revision$
|
|
# $Date$
|
|
#
|
|
|
|
.SUFFIXES :
|
|
.SUFFIXES : .f .d .o .cpp
|
|
|
|
do_ranlib = @DO_RANLIB@
|
|
|
|
LIB = @buildlib@/libctmath.a
|
|
|
|
all: $(LIB)
|
|
PIC_FLAG=@PIC@
|
|
|
|
F_FLAGS = @FFLAGS@ $(PIC_FLAG)
|
|
|
|
OBJS = \
|
|
mach.o \
|
|
ddaspk.o \
|
|
dgbfa.o \
|
|
dgbsl.o \
|
|
dgefa.o \
|
|
dgesl.o \
|
|
dp1vlu.o \
|
|
dpcoef.o \
|
|
dpolft.o \
|
|
fdump.o \
|
|
j4save.o \
|
|
pcoef.o \
|
|
polfit.o \
|
|
pvalue.o \
|
|
xercnt.o \
|
|
xerhlt.o \
|
|
xermsg.o \
|
|
xerprn.o \
|
|
xersve.o \
|
|
xgetua.o \
|
|
printstring.o
|
|
|
|
SRCS = $(OBJS:.o=.cpp)
|
|
all = $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
@ARCHIVE@ $(LIB) $(OBJS) > /dev/null
|
|
ifeq ($(do_ranlib),1)
|
|
@RANLIB@ $(LIB)
|
|
endif
|
|
|
|
%.o : %.c
|
|
@CXX@ -c $< @DEFS@ @CXXFLAGS@ @PIC@ -I../.. $(INCLUDES)
|
|
|
|
%.o : %.cpp
|
|
@CXX@ -c $< @DEFS@ @CXXFLAGS@ @PIC@ $(INCLUDES)
|
|
|
|
%.o : %.f
|
|
@F77@ -c $< $(F_FLAGS)
|
|
|
|
$(OBJS): Makefile
|
|
|
|
clean:
|
|
$(RM) $(OBJS) $(LIB)
|
|
|
|
depends:
|
|
echo '...'
|
|
|
|
|