aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-23 12:20:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-23 12:20:51 +0000
commita898762b524ce1e92a2396f36c02aa475c4314f8 (patch)
tree9eb71ad491489b1e2f225f1f85500c2e0c6c9eef /Makefile
parent116f5db5c2339c9526735df960b4dbc52ee78568 (diff)
downloadrpmtools-a898762b524ce1e92a2396f36c02aa475c4314f8.tar
rpmtools-a898762b524ce1e92a2396f36c02aa475c4314f8.tar.gz
rpmtools-a898762b524ce1e92a2396f36c02aa475c4314f8.tar.bz2
rpmtools-a898762b524ce1e92a2396f36c02aa475c4314f8.tar.xz
rpmtools-a898762b524ce1e92a2396f36c02aa475c4314f8.zip
no_comment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9f409c..e4d8b2d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,12 @@ VERSION = 1.1
NAME = rpmtools
FROMC = rpm2header #rpm-find-leaves
FROMCC = gendepslist2 hdlist2names hdlist2files hdlist2prereq
+FROMC_STATIC = $(FROMC:%=%_static)
+FROMCC_STATIC = $(FROMCC:%=%_static)
ALL = $(FROMC) $(FROMCC)
+ALL_STATIC = $(FROMC_STATIC) $(FROMCC_STATIC)
CFLAGS = -Wall -g
-LIBRPM = /usr/lib/librpm.so.0 -ldb1 -lz -I/usr/include/rpm -lpopt
+LIBRPM = -lrpm -ldb1 -lz -lbz2 -I/usr/include/rpm -lpopt
all: $(ALL)
@@ -16,11 +19,17 @@ install: $(ALL)
$(FROMCC): %: %.cc
$(CXX) $(CFLAGS) $< $(LIBRPM) -o $@
+$(FROMCC_STATIC): %_static: %.cc
+ $(CXX) -s -static $(CFLAGS) $< $(LIBRPM) -o $@
+
$(FROMC): %: %.c
$(CC) $(CFLAGS) $< $(LIBRPM) -o $@
+$(FROMC_STATIC): %_static: %.c
+ $(CC) -s -static $(CFLAGS) $< $(LIBRPM) -o $@
+
clean:
- rm -rf *~ $(ALL)
+ rm -rf *~ $(ALL) $(ALL_STATIC)
dis: clean
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*