cc-files = $(wildcard *.cc)
o-files = $(addprefix ../lib/o/, $(cc-files:.cc=.o))
-go-files = $(addprefix ../lib/o/, $(cc-files:.cc=.go))
+go-files = $(addprefix ../lib/go/, $(cc-files:.cc=.go))
h-files = $(wildcard ../include/*/*.h)
forward-declarations = $D/base/include/base/forward-declarations.h
-../lib/o/%.go :
+../lib/go/%.go :
@echo ============================ Compiling with debugging information: $<
@$(CXX) $(CXXFLAGS.g) -c $< -o $@
../lib/o/%.o :
../lib/libbase.a: $(forward-declarations) $(o-files)
+ @echo ======================================== Updating library: $@
@ar ruv $@ $(o-files)
../lib/libbase.g.a: $(forward-declarations) $(go-files)
+ @echo ======================================== Updating library: $@
@ar ruv $@ $(go-files)
clean:
ifneq (1,${recursive-make-fwd-decl})
@echo ============================ Remaking Makefile
@perl ../Make_dep.pl ../lib/libbase $(INCLUDE) $(cc-files) \
- | perl -p -e 's!^.*\((.*)\):!../lib/o/$$1:!g;' \
+ | perl -p -e 's!^.*\((.*\.(g?o))\):!../lib/$$2/$$1:!g;' \
> ../lib/Makefile.dep
else
@echo ============================ Not remaking Makefile since in nested mode