92 |
|
|
93 |
|
|
94 |
$(OBJDIR)/.%.d: %.c |
$(OBJDIR)/.%.d: %.c |
95 |
|
ifeq ($(verbose),) |
96 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
97 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
98 |
|
# echo "generating depend infos for $< into $@"; \ |
99 |
|
@$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
100 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
101 |
|
else |
102 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
103 |
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
104 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
105 |
$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
106 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
107 |
|
endif |
108 |
|
|
109 |
$(OBJDIR)/.%.d: %.cpp |
$(OBJDIR)/.%.d: %.cpp |
110 |
|
ifeq ($(verbose),) |
111 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
112 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
113 |
|
# echo "generating depend infos for $< into $@"; \ |
114 |
|
@$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
115 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
116 |
|
else |
117 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
118 |
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
119 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
120 |
$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
121 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
122 |
|
endif |
123 |
|
|
124 |
$(OBJDIR)/%.o: %.c |
$(OBJDIR)/%.o: %.c |
125 |
|
ifeq ($(verbose),) |
126 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
127 |
|
$(CC) -c $(CFLAGS) -o $@ $< |
128 |
|
else |
129 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
130 |
$(CC) -c $(CFLAGS) -o $@ $< |
$(CC) -c $(CFLAGS) -o $@ $< |
131 |
|
endif |
132 |
|
|
133 |
$(OBJDIR)/%.o: %.cpp |
$(OBJDIR)/%.o: %.cpp |
134 |
|
ifeq ($(verbose),) |
135 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
136 |
|
$(CXX) -c $(CFLAGS) -o $@ $< |
137 |
|
else |
138 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
139 |
$(CXX) -c $(CFLAGS) -o $@ $< |
$(CXX) -c $(CFLAGS) -o $@ $< |
140 |
|
endif |
141 |
|
|
142 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
143 |
# General directory structure, includes, objects |
# General directory structure, includes, objects |