99 |
|
|
100 |
|
|
101 |
$(OBJDIR)/.%.d: %.f |
$(OBJDIR)/.%.d: %.f |
102 |
|
ifeq ($(verbose),) |
103 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
104 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
105 |
|
# echo "generating depend infos for $< into $@"; \ |
106 |
|
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
107 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
108 |
|
else |
109 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
110 |
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; \ |
111 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
112 |
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
113 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
114 |
|
endif |
115 |
|
|
116 |
$(OBJDIR)/.%.d: %.for |
$(OBJDIR)/.%.d: %.for |
117 |
|
ifeq ($(verbose),) |
118 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
119 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
120 |
|
# echo "generating depend infos for $< into $@"; \ |
121 |
|
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
122 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
123 |
|
else |
124 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
125 |
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; \ |
126 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
127 |
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
$(F77) -M $(FFLAGS) $< 2>/dev/null\ |
128 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
129 |
|
endif |
130 |
|
|
131 |
$(OBJDIR)/.%.d: %.c |
$(OBJDIR)/.%.d: %.c |
132 |
|
ifeq ($(verbose),) |
133 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
134 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
135 |
|
# echo "generating depend infos for $< into $@"; \ |
136 |
|
$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
137 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
138 |
|
else |
139 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
140 |
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; \ |
141 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
142 |
$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
$(CC) -M $(CFLAGS) $< 2>/dev/null\ |
143 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
144 |
|
endif |
145 |
|
|
146 |
$(OBJDIR)/.%.d: %.cpp |
$(OBJDIR)/.%.d: %.cpp |
147 |
|
ifeq ($(verbose),) |
148 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
149 |
|
if [ ! -d $(OBJDIR)/$$(/usr/bin/dirname $<) ]; then mkdir -p $(OBJDIR)/$$(/usr/bin/dirname $<) $(OBJDIR)/.$$(/usr/bin/dirname $<) ;fi; \ |
150 |
|
# echo "generating depend infos for $< into $@"; \ |
151 |
|
$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
152 |
|
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
153 |
|
else |
154 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
155 |
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; \ |
156 |
echo "generating depend infos for $< into $@"; \ |
echo "generating depend infos for $< into $@"; \ |
157 |
$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
$(CXX) -M $(CFLAGS) $< 2>/dev/null\ |
158 |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
| sed -e 's%$*.o%$(OBJDIR)/$*.o%g' > $(OBJDIR)/.$*.d |
159 |
|
endif |
160 |
|
|
161 |
$(OBJDIR)/%.o: %.for |
$(OBJDIR)/%.o: %.for |
162 |
|
ifeq ($(verbose),) |
163 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
164 |
|
$(F77) -c $(FFLAGS) -o $@ $< |
165 |
|
else |
166 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
167 |
$(F77) -c $(FFLAGS) -o $@ $< |
$(F77) -c $(FFLAGS) -o $@ $< |
168 |
|
endif |
169 |
|
|
170 |
$(OBJDIR)/%.o: %.f |
$(OBJDIR)/%.o: %.f |
171 |
|
ifeq ($(verbose),) |
172 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
173 |
|
$(F77) -c $(FFLAGS) -o $@ $< |
174 |
|
else |
175 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
176 |
$(F77) -c $(FFLAGS) -o $@ $< |
$(F77) -c $(FFLAGS) -o $@ $< |
177 |
|
endif |
178 |
|
|
179 |
$(OBJDIR)/%.o: %.c |
$(OBJDIR)/%.o: %.c |
180 |
|
ifeq ($(verbose),) |
181 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
182 |
|
$(CC) -c $(CFLAGS) -o $@ $< |
183 |
|
else |
184 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
185 |
$(CC) -c $(CFLAGS) -o $@ $< |
$(CC) -c $(CFLAGS) -o $@ $< |
186 |
|
endif |
187 |
|
|
188 |
$(OBJDIR)/%.o: %.cpp |
$(OBJDIR)/%.o: %.cpp |
189 |
|
ifeq ($(verbose),) |
190 |
|
@if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
191 |
|
$(CXX) -c $(CFLAGS) -o $@ $< |
192 |
|
else |
193 |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
if [ ! -d $(OBJDIR) ]; then mkdir -p $(OBJDIR); fi; \ |
194 |
$(CXX) -c $(CFLAGS) -o $@ $< |
$(CXX) -c $(CFLAGS) -o $@ $< |
195 |
|
endif |
196 |
|
|
197 |
#------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------ |
198 |
# General directory structure, includes, objects |
# General directory structure, includes, objects |