summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5e26373422e45c2cbba262d007bbe112e123c627 (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
CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
LDLIBS = librazor.a -lexpat -lz -g -lrpm -lcurl

all : razor test-driver rpm-razor

librazor_objs = razor.o yum.o rpm.o types.o util.o razor-root.o
librazor.a : $(librazor_objs)
	ar cr $@ $(librazor_objs)

razor : main.o librazor.a

*.o : razor.h razor-internal.h
razor.o : types.h

test-driver : librazor.a test-driver.o

rpm-razor : librazor.a rpm-razor.o

test : test-driver
	./test-driver test.xml

reset : ./razor
	sudo rm -rf install
	./razor init

clean :
	rm -f *.o razor librazor.a