blob: 357ec5e4c9978be171e69fc7b7531b5041aca443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
|