1 |
#***************************************************************************** |
2 |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.1.1.1 2008/09/23 07:20:15 mocchiut Exp $ |
4 |
# VERSION: |
5 |
# AUTHOR: Nergal S.r.l. |
6 |
# DATE: |
7 |
# |
8 |
# DESCRIPTION: base Makefile |
9 |
# |
10 |
# REVISION HISTORY: |
11 |
# |
12 |
# Version Date Author Change Description |
13 |
# |
14 |
#*****************************************************************************/ |
15 |
|
16 |
|
17 |
#------------------------------------------------------------------------------ |
18 |
include $(BASEDIR)/PamOffLineSW/Make.def |
19 |
#------------------------------------------------------------------------------ |
20 |
|
21 |
|
22 |
CFLAGS += -I $(FORROU_DIR_INC) -I $(ROOT_DIR_INC) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DPIC |
23 |
|
24 |
CSRCS = dummy2.c |
25 |
|
26 |
#------------------------------------------------------------------------------ |
27 |
|
28 |
TARGETLIB = $(FORROUINT_A) |
29 |
|
30 |
#------------------------------------------------------------------------------ |
31 |
|
32 |
|
33 |
libs: $(TARGETLIB) $(FORROU_A) |
34 |
|
35 |
$(FORROU_A): $(TARGETLIB) $(FORROUEXTLIB) |
36 |
ifeq ($(verbose),) |
37 |
@cd $(OBJDIR) &>/dev/null; \ |
38 |
for sub_lib in $(FORROUEXTLIB) ; do \ |
39 |
$(AR) -x $$sub_lib &>/dev/null; \ |
40 |
done ; \ |
41 |
$(AR) -scrv $@ *.o &>/dev/null; |
42 |
else |
43 |
cd $(OBJDIR); \ |
44 |
pwd ;\ |
45 |
for sub_lib in $(FORROUEXTLIB) ; do \ |
46 |
$(AR) -x $$sub_lib ; \ |
47 |
done ; \ |
48 |
$(AR) -scrv $@ *.o; |
49 |
endif |
50 |
|
51 |
$(FORROUEXTLIB): $(FORROUEXTDIR) |
52 |
ifeq ($(verbose),) |
53 |
@for sub_dir in $(FORROUEXTDIR) ; do \ |
54 |
$(MAKE) -s -C $$sub_dir libs ; \ |
55 |
done |
56 |
else |
57 |
for sub_dir in $(FORROUEXTDIR) ; do \ |
58 |
$(MAKE) -C $$sub_dir libs ; \ |
59 |
done |
60 |
endif |
61 |
|
62 |
$(TARGETLIB) : ${OBJS} |
63 |
ifeq ($(verbose),) |
64 |
@$(AR) -scrv $@ ${OBJS} &>/dev/null |
65 |
else |
66 |
$(AR) -scrv $@ ${OBJS} |
67 |
endif |
68 |
|
69 |
clean: clean-subdir |
70 |
ifeq ($(verbose),) |
71 |
@rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d |
72 |
else |
73 |
rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d |
74 |
endif |
75 |
|
76 |
clean-subdir: |
77 |
ifeq ($(verbose),) |
78 |
@for sub_dir in $(FORROUEXTDIR) ; do \ |
79 |
$(MAKE) -s -C $$sub_dir clean ; \ |
80 |
done |
81 |
else |
82 |
for sub_dir in $(FORROUEXTDIR) ; do \ |
83 |
$(MAKE) -C $$sub_dir clean ; \ |
84 |
done |
85 |
endif |
86 |
|
87 |
-include $(DEPEND) |
88 |
|
89 |
|
90 |
#------------------------------------------------------------------------------ |
91 |
include $(BASEDIR)/PamOffLineSW/Make.def.post |
92 |
#------------------------------------------------------------------------------ |