1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
BUILD_DIR=$(CURDIR)/../..
include $(BUILD_DIR)/ObjCryst/rules-gnu.mak
##Using blitz library ??
##Make it (in blitz dir) using : ./configure --with-cxx=gcc --enable-optimize
##and then : make lib
#ifeq (${VFNVECTOR_USE_BLITZ},1)
# C_BLITZFLAG := -D__VFN_VECTOR_USE_BLITZ__
# AR_BLITZ := ${DIR_BLITZ}/lib/libblitz.a
#else
C_BLITZFLAG :=
AR_BLITZ :=
#endif
OBJ=CrystVector.o
ifeq ($(profile),2)
%.o : %.cpp
@rm -f $(*F).gcda $(*F).gcno
@$(MAKEDEPEND)
${CXX} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
else
%.o : %.cpp
@$(MAKEDEPEND)
${CXX} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@
endif
-include $(OBJ:.o=.dep)
libCrystVector.a : ${OBJ}
${AR} crs $@ ${AR_BLITZ} ${filter-out %.a %.so, $^}
lib: libCrystVector.a
dep:
makedepend *.cpp -Y -I. -I../
default: lib
# target for removing all object files
.PHONY : tidy
tidy::
@${RM} core *.o *.dep
# target for removing all object files and libraries
.PHONY : clean
clean:: tidy
@${RM} *.a *.exe
cvsignore:
cp -f ${DIR_CRYST}/.cvsignore ./
|