diff options
author | Cristian Gafton <gafton@redhat.com> | 1999-08-20 21:41:10 +0000 |
---|---|---|
committer | Cristian Gafton <gafton@redhat.com> | 1999-08-20 21:41:10 +0000 |
commit | afd62094e275a0a09fab4bc19ddad6a61666fc26 (patch) | |
tree | 73fa04149de01715c72972af5373d407a69e2dbe /rpmmodule/Makefile | |
parent | 5df2e1bade878b73e515f5500a654cbf06e68d11 (diff) | |
download | anaconda-afd62094e275a0a09fab4bc19ddad6a61666fc26.tar.gz anaconda-afd62094e275a0a09fab4bc19ddad6a61666fc26.tar.xz anaconda-afd62094e275a0a09fab4bc19ddad6a61666fc26.zip |
MAke it pretty
Diffstat (limited to 'rpmmodule/Makefile')
-rw-r--r-- | rpmmodule/Makefile | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/rpmmodule/Makefile b/rpmmodule/Makefile index 6546c9e0a..ca13a3189 100644 --- a/rpmmodule/Makefile +++ b/rpmmodule/Makefile @@ -1,17 +1,29 @@ -PYTHONLIBDIR = $(DESTDIR)/usr/lib/python1.5/site-packages +# +# Makefile for the RPM bindigs for python +# +# $Id$ -CFLAGS += -fPIC -I/usr/include/rpm -I/usr/include/python1.5 -g +PYTHON = $(DESTDIR)/usr/lib/python1.5/site-packages -TARGET = rpmmodule.so +CC = gcc + +INCLUDES = -I/usr/include/rpm -I/usr/include/python1.5 +CFLAGS = -Wall -fPIC -g $(INCLUDES) + +LIBS = -lrpm -lz -ldb1 +LDFLAGS = -shared -Wl,-soname,$(TARGET) $(LIBS) + +# what are we building here? +TARGET = rpmmodule.so all: $(TARGET) rpmmodule.so: rpmmodule.o upgrade.o hash.o - gcc -shared -o $@ $^ -lrpm -lz -ldb1 + $(CC) -o $@ $^ $(LDFLAGS) clean: - rm -f *.o $(TARGET) + rm -f *.o $(TARGET) *~ install: all - mkdir -p $(PYTHONLIBDIR) - cp $(TARGET) $(PYTHONLIBDIR) + install -d $(PYTHON) + install -m 755 $(TARGET) $(PYTHON) |