1 |
#***************************************************************************** |
#***************************************************************************** |
2 |
# |
# |
3 |
# FILE NAME: $Id: Makefile,v 1.4 2008-04-02 13:33:08 messineo Exp $ |
# FILE NAME: $Id: Makefile,v 1.1.1.1 2008/09/23 07:20:15 mocchiut Exp $ |
4 |
# VERSION: |
# VERSION: |
5 |
# AUTHOR: Nergal S.r.l. |
# AUTHOR: Nergal S.r.l. |
6 |
# DATE: |
# DATE: |
33 |
libs: $(TARGETLIB) $(FORROU_A) |
libs: $(TARGETLIB) $(FORROU_A) |
34 |
|
|
35 |
$(FORROU_A): $(TARGETLIB) $(FORROUEXTLIB) |
$(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); \ |
cd $(OBJDIR); \ |
44 |
pwd ;\ |
pwd ;\ |
45 |
for sub_lib in $(FORROUEXTLIB) ; do \ |
for sub_lib in $(FORROUEXTLIB) ; do \ |
46 |
$(AR) -x $$sub_lib ; \ |
$(AR) -x $$sub_lib ; \ |
47 |
done ; \ |
done ; \ |
48 |
$(AR) -scrv $@ *.o; |
$(AR) -scrv $@ *.o; |
49 |
|
endif |
50 |
|
|
51 |
$(FORROUEXTLIB): $(FORROUEXTDIR) |
$(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 \ |
for sub_dir in $(FORROUEXTDIR) ; do \ |
58 |
$(MAKE) -C $$sub_dir libs ; \ |
$(MAKE) -C $$sub_dir libs ; \ |
59 |
done |
done |
60 |
|
endif |
61 |
|
|
62 |
$(TARGETLIB) : ${OBJS} |
$(TARGETLIB) : ${OBJS} |
63 |
|
ifeq ($(verbose),) |
64 |
|
@$(AR) -scrv $@ ${OBJS} &>/dev/null |
65 |
|
else |
66 |
$(AR) -scrv $@ ${OBJS} |
$(AR) -scrv $@ ${OBJS} |
67 |
|
endif |
68 |
|
|
69 |
clean: clean-subdir |
clean: clean-subdir |
70 |
|
ifeq ($(verbose),) |
71 |
|
@rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d |
72 |
|
else |
73 |
rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d |
rm -f $(TARGETLIB) $(OBJDIR)/*.[oa] $(OBJDIR)/.*.d |
74 |
|
endif |
75 |
|
|
76 |
clean-subdir: |
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 \ |
for sub_dir in $(FORROUEXTDIR) ; do \ |
83 |
$(MAKE) -C $$sub_dir clean ; \ |
$(MAKE) -C $$sub_dir clean ; \ |
84 |
done |
done |
85 |
|
endif |
86 |
|
|
87 |
-include $(DEPEND) |
-include $(DEPEND) |
88 |
|
|