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.
     1 CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
     2 LDLIBS = -lexpat -lz -g -lrpm -lcurl
     3 
     4 all : razor test-driver
     5 
     6 razor : razor.o yum.o main.o rpm.o types.o util.o
     7 
     8 *.o : razor.h razor-internal.h
     9 razor.o : types.h
    10 
    11 test-driver : razor.o types.o util.o test-driver.o
    12 
    13 test : test-driver
    14 	./test-driver test.xml
    15 
    16 reset : ./razor
    17 	sudo rm -rf install
    18 	./razor init
    19 
    20 clean :
    21 	rm -f *.o razor