summaryrefslogtreecommitdiff
path: root/lsbpkgchk/src/tests/rpmchk/makefile
blob: 32818817c6c067e7fbddf0f0a530faa03d9afce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CFLAGS=-g -Wall

OBJS=archive.o hdr.o idxtag.o lead.o rpmchk.o util.o vals.o fhs.o idxtbl.o \
	md5c.o
GENSRCS=rpmtag.h idxtbl.c
LIBS= ../tetj/libtetj.a
LIB=librpmchk.a

all: $(LIB) test

install:

$(OBJS): $(GENSRCS)

$(LIB): $(OBJS)
	rm -f $(LIB);ar clq $(LIB) $(OBJS)

test: test.c $(LIB) $(LIBS)
	cc -o test $(CFLAGS) test.c $(LIB) $(LIBS) -lz

idx.o: rpmtag.h

rpmtag.h:
	./mktaghdr >rpmtag.h

idxtbl.c:
	./mktagtbl >idxtbl.c

clean:
	rm -f $(OBJS) $(LIB)

distclean: clean
	rm -f $(GENSRCS)