summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2001-04-30 03:10:43 +0000
committerAdam Heath <doogie@debian.org>2001-04-30 03:10:43 +0000
commit9bf6182944d64909499eeb80c0f8014a63a10f4f (patch)
treeafd671b979c35b0a5ff2d1980863610630d3c2ea /dpkg-deb
parent71fec874cba4a01204a7f09ea88be0c4c0899d3a (diff)
downloaddpkg-9bf6182944d64909499eeb80c0f8014a63a10f4f.tar.gz
Added -static support. There is support for building a dpkg-static.deb,
but this is not used during a normal run. However, a -static.nondebbin.tar.gz file is created, in addition to the normal nondebbin.tar.gz.
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/Makefile.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/dpkg-deb/Makefile.in b/dpkg-deb/Makefile.in
index 1d8e880a9..a9710ffca 100644
--- a/dpkg-deb/Makefile.in
+++ b/dpkg-deb/Makefile.in
@@ -11,17 +11,20 @@ include ../Makefile.conf
SOURCES = build.c extract.c info.c main.c
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
-GENFILES = $(OBJECTS) dpkg-deb
+GENFILES = $(OBJECTS) dpkg-deb dpkg-deb-static
.PHONY: all
all:: dpkg-deb
+ifdef ALSO_STATIC
+all:: dpkg-deb-static
+endif
.PHONY: install
install:: all
.PHONY: clean
clean::
- $(RM) $(GENFILES)
+ -$(RM) $(GENFILES)
.PHONY: distclean
cvslean:: clean
@@ -34,12 +37,17 @@ install:: install-program install-doc
install-program:
$(mkinstalldirs) $(DESTDIR)$(bindir)
$(INSTALL) dpkg-deb $(DESTDIR)$(bindir)
+ifdef ALSO_STATIC
+ $(INSTALL) dpkg-deb-static $(DESTDIR)$(bindir)
+endif
.PHONY: install-doc
install-doc:
$(mkinstalldirs) $(DESTDIR)$(man1dir)
$(INSTALL_DATA) $(srcdir)/dpkg-deb.1 $(DESTDIR)$(man1dir)
-dpkg-deb: $(OBJECTS) ../lib/libdpkg.a
- $(CC) $(LDFLAGS) -L../lib -o $@ $(OBJECTS) $(LIBS) $(NLS_LIBS) $(ZLIB_LIBS) -ldpkg
+dpkg-deb-static: LDFLAGS += -static
+dpkg-deb-static: ZLIB_LIBS = $(ZLIB_LIBS_ALSO_STATIC)
+dpkg-deb dpkg-deb-static: $(OBJECTS) ../lib/libdpkg.a
+ $(CC) $(LDFLAGS) -L../lib -o $@ $(OBJECTS) $(LIBS) $(NLS_LIBS) -ldpkg $(ZLIB_LIBS)