aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-02-17 17:58:25 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-02-17 17:58:25 +0000
commitec103b683b1679b09e1d1a54b14a4ba178d67a37 (patch)
treebaeb8862d2fbee36aa6c58c282a3383c9aeb7c4c /Makefile
parent30066bc80a46d6b873549c8d6b31e426195ecfbe (diff)
downloadrpmtools-ec103b683b1679b09e1d1a54b14a4ba178d67a37.tar
rpmtools-ec103b683b1679b09e1d1a54b14a4ba178d67a37.tar.gz
rpmtools-ec103b683b1679b09e1d1a54b14a4ba178d67a37.tar.bz2
rpmtools-ec103b683b1679b09e1d1a54b14a4ba178d67a37.tar.xz
rpmtools-ec103b683b1679b09e1d1a54b14a4ba178d67a37.zip
Initial revisioncookertopic/MandrakeSoft
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..357ec5e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+FROMC = rpm2header #rpm-find-leaves
+FROMCC = gendepslist hdlist2names hdlist2files
+ALL = $(FROMC) $(FROMCC)
+LIBRPM = /usr/lib/librpm.so.0 -ldb1 -lz -I/usr/include/rpm -lpopt
+
+all: $(ALL)
+
+install: $(ALL)
+ install -d $(PREFIX)/usr/bin
+ install -s $(ALL) $(PREFIX)/usr/bin
+
+$(FROMCC): %: %.cc
+ $(CXX) $(CFLAGS) $< $(LIBRPM) -o $@
+
+$(FROMC): %: %.c
+ $(CC) $(CFLAGS) $< $(LIBRPM) -o $@
+
+clean:
+ rm -rf *~ $(ALL)