diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-03-23 12:20:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-03-23 12:20:51 +0000 |
commit | a898762b524ce1e92a2396f36c02aa475c4314f8 (patch) | |
tree | 9eb71ad491489b1e2f225f1f85500c2e0c6c9eef /Makefile | |
parent | 116f5db5c2339c9526735df960b4dbc52ee78568 (diff) | |
download | rpmtools-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-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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* |