From f6bb85b2719bcdbde20f5ce146aae4107c2f9e7c Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 9 Jun 2008 16:01:34 -0400 Subject: Add librazor.a to Makefile to make it clearer what is core razor. --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f2dd346..7ed1eb3 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,20 @@ CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g -LDLIBS = -lexpat -lz -g -lrpm -lcurl +LDLIBS = librazor.a -lexpat -lz -g -lrpm -lcurl all : razor test-driver rpm-razor -razor : razor.o yum.o main.o rpm.o types.o util.o +librazor_objs = razor.o yum.o rpm.o types.o util.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 : razor.o types.o util.o test-driver.o +test-driver : librazor.a test-driver.o -rpm-razor : rpm-razor.o razor.o types.o util.o rpm.o +rpm-razor : librazor.a rpm-razor.o test : test-driver ./test-driver test.xml @@ -20,4 +24,4 @@ reset : ./razor ./razor init clean : - rm -f *.o razor + rm -f *.o razor librazor.a -- cgit v1.2.3