Makefile
author Kristian H?gsberg <krh@redhat.com>
Mon Jun 09 12:47:37 2008 -0400 (2008-06-09)
changeset 230 c1e2aed8dd07
parent 216 b97c130460a5
child 233 2555ce3e2567
permissions -rw-r--r--
Rewrite depsolver to use a series of passes over all packages.

The big change is that we follow one step of the depedency chain for
each package to resolve in each iteration, and repeat until there are
no more possible moves. In contrast the old depsolver would try to
follow the dependency chain completely for one package at a time.

This new approach is simpler and faster, and at the same time more
roboust. Instead of knowing how one newly installed package may
affect other packages (obsoleting, pulling in new packages etc), the
new algorithm just looks at the total list of requires, provides,
obsoletes and conflicts after installing new packages.
     1 CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
     2 LDLIBS = -lexpat -lz -g -lrpm -lcurl
     3 
     4 all : razor test-driver rpm-razor
     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 rpm-razor : rpm-razor.o razor.o types.o util.o rpm.o
    14 
    15 test : test-driver
    16 	./test-driver test.xml
    17 
    18 reset : ./razor
    19 	sudo rm -rf install
    20 	./razor init
    21 
    22 clean :
    23 	rm -f *.o razor