Makefile
author Kristian H?gsberg <krh@jiraiya.boston.redhat.com>
Wed Apr 09 02:41:03 2008 -0400 (2008-04-09)
changeset 211 cf0ca962262b
parent 175 d453ed5bfcfe
child 215 85381bba83df
permissions -rw-r--r--
Use the cpio headers instead of the rpm headers when unpacking.

The files in the cpio payload doesn't actually follow the file order
in the rpm headers, so we need to decode the cpio header and use the
information there.
danw@136
     1
CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
krh@71
     2
LDLIBS = -lexpat -lz -g -lrpm -lcurl
krh@0
     3
krh@80
     4
all : razor test-driver
krh@80
     5
danw@115
     6
razor : razor.o yum.o main.o rpm.o types.o util.o
krh@80
     7
danw@112
     8
*.o : razor.h razor-internal.h
danw@115
     9
razor.o : types.h
danw@112
    10
danw@115
    11
test-driver : razor.o types.o util.o test-driver.o
krh@80
    12
krh@80
    13
test : test-driver
krh@92
    14
	./test-driver test.xml
krh@0
    15
krh@175
    16
reset : ./razor
krh@199
    17
	sudo rm -rf install
krh@175
    18
	./razor init
krh@175
    19
krh@0
    20
clean :
krh@0
    21
	rm -f *.o razor