summaryrefslogtreecommitdiff
path: root/buildlib/defaults.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:39 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:39 +0000
commite1b1ae50b50242e30a56e14df854d4368e8b49c2 (patch)
tree138434f2ab10a4aa5a73154347553a912a9cb4ae /buildlib/defaults.mak
parentc3c459fc5ec635db7e6fa7cff97f4d954cd39fc9 (diff)
Static lib support
Author: jgg Date: 1998-11-24 01:09:49 GMT Static lib support
Diffstat (limited to 'buildlib/defaults.mak')
-rw-r--r--buildlib/defaults.mak8
1 files changed, 6 insertions, 2 deletions
diff --git a/buildlib/defaults.mak b/buildlib/defaults.mak
index f03236018..754da1b6f 100644
--- a/buildlib/defaults.mak
+++ b/buildlib/defaults.mak
@@ -64,6 +64,10 @@ MANPAGE_H = $(BASE)/buildlib/manpage.mak
PROGRAM_H = $(BASE)/buildlib/program.mak
COPY_H = $(BASE)/buildlib/copy.mak
+ifdef STATICLIBS
+LIBRARY_H += $(BASE)/buildlib/staticlibrary.mak
+endif
+
# Source location control
# SUBDIRS specifies sub components of the module that
# may be located in subdrictories of the source dir.
@@ -105,14 +109,14 @@ $(INCLUDE)/%.h $(addprefix $(INCLUDE)/,$(addsuffix /%.h,$(HEADER_TARGETDIRS))) :
# Compile rules are expected to call this macro after calling the compiler
ifdef INLINEDEPFLAG
define DoDep
- sed -e "1s/.*:/$(subst /,\\/,$@):/" $(basename $(@F)).d > $(DEP)/$(basename $(@F)).d
+ sed -e "1s/.*:/$(subst /,\\/,$@):/" $(basename $(@F)).d > $(DEP)/$(@F).d
-rm -f $(basename $(@F)).d
endef
else
ifdef DEPFLAG
define DoDep
$(CXX) $(DEPFLAG) $(CPPFLAGS) -o $@ $<
- sed -e "1s/.*:/$(subst /,\\/,$@):/" $(basename $(@F)).d > $(DEP)/$(basename $(@F)).d
+ sed -e "1s/.*:/$(subst /,\\/,$@):/" $(basename $(@F)).d > $(DEP)/$(@F).d
-rm -f $(basename $(@F)).d
endef
else