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.
danw@136
     1
CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
krh@71
     2
LDLIBS = -lexpat -lz -g -lrpm -lcurl
krh@0
     3
krh@215
     4
all : razor test-driver rpm-razor
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@217
    13
rpm-razor : rpm-razor.o razor.o types.o util.o rpm.o
krh@215
    14
krh@80
    15
test : test-driver
krh@92
    16
	./test-driver test.xml
krh@0
    17
krh@175
    18
reset : ./razor
krh@199
    19
	sudo rm -rf install
krh@175
    20
	./razor init
krh@175
    21
krh@0
    22
clean :
krh@0
    23
	rm -f *.o razor