#***************************************************************************** # # FILE NAME: $Id: Makefile,v 1.1.1.1 2008/09/23 07:20:15 mocchiut Exp $ # VERSION: # AUTHOR: Nergal S.r.l. # DATE: # # DESCRIPTION: base Makefile # # REVISION HISTORY: # # Version Date Author Change Description # #*****************************************************************************/ #------------------------------------------------------------------------------ include $(BASEDIR)/PamOffLineSW/Make.def #------------------------------------------------------------------------------ CFLAGS += -I $(FORROU_DIR_INC) -I $(ROOT_DIR_INC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC CSRCS = dummy2.c #------------------------------------------------------------------------------ TARGETLIB = $(FORROUINT_A) #------------------------------------------------------------------------------ libs: $(TARGETLIB) $(FORROU_A) $(FORROU_A): $(TARGETLIB) $(FORROUEXTLIB) ifeq ($(verbose),) @cd $(OBJDIR) &>/dev/null; \ for sub_lib in $(FORROUEXTLIB) ; do \ $(AR) -x $$sub_lib &>/dev/null; \ done ; \ $(AR) -scrv $@ *.o &>/dev/null; else cd $(OBJDIR); \ pwd ;\ for sub_lib in $(FORROUEXTLIB) ; do \ $(AR) -x $$sub_lib ; \ done ; \ $(AR) -scrv $@ *.o; endif $(FORROUEXTLIB): $(FORROUEXTDIR) ifeq ($(verbose),) @for sub_dir in $(FORROUEXTDIR) ; do \ $(MAKE) -s -C $$sub_dir libs ; \ done else for sub_dir in $(FORROUEXTDIR) ; do \ $(MAKE) -C $$sub_dir libs ; \ done endif $(TARGETLIB) : ${OBJS} ifeq ($(verbose),) @$(AR) -scrv $@ ${OBJS} &>/dev/null else $(AR) -scrv $@ ${OBJS} endif clean: clean-subdir ifeq ($(verbose),) @rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d else rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d endif clean-subdir: ifeq ($(verbose),) @for sub_dir in $(FORROUEXTDIR) ; do \ $(MAKE) -s -C $$sub_dir clean ; \ done else for sub_dir in $(FORROUEXTDIR) ; do \ $(MAKE) -C $$sub_dir clean ; \ done endif -include $(DEPEND) #------------------------------------------------------------------------------ include $(BASEDIR)/PamOffLineSW/Make.def.post #------------------------------------------------------------------------------