################################################################# ### ### Makefile for Singular ### ################################################################# SHELL = /bin/sh ## ## various paths ## top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ libdir = @libdir@ # includes are taken from here includedir = @includedir@/resources ## ## various programs ## CXX = @CXX@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = ../mkinstalldirs LN_S = ln -s ## ## compiler and linker options ## PIPE = -pipe CFLAGS = @CFLAGS@ ${PIPE} CXXFLAGS = @CXXFLAGS@ ${PIPE} CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions CPPFLAGS = -I${top_srcdir}/.. DEFS = -DNDEBUG -DOM_NDEBUG -Dix86_Linux -DHAVE_CONFIG_H ## End configuration dependend stuff ################################################################# ### ### file sets ### # normal C++ source files CXXSOURCES=feFopen.cc feResource.cc # normal C source files CSOURCES= SOURCES=${CSOURCES} ${CXXSOURCES} HEADERS=feFopen.h feResource.h DISTFILES=${SOURCES} ${HEADERS} OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) .cc.o: ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< .c.o: ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< libresources.a: ${OBJS} -rm -f $@ ar cr $@ $^ all: libresources.a install: all ${MKINSTALLDIRS} ${includedir} ${MKINSTALLDIRS} ${libdir} ${INSTALL_DATA} feFopen.h ${includedir}/feFopen.h ${INSTALL_DATA} libresources.a ${libdir}/libresources.a ## ## clean targest ## mostlyclean: -rm -f *.o *.og core *.op clean: mostlyclean -rm -f *.bak *.d *.dd depend *.a *.so* tags: ctags *.c *.h *.cc *.inc