summaryrefslogtreecommitdiffstats
path: root/isys/Makefile
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-12-03 21:23:16 +0000
committerJeremy Katz <katzj@redhat.com>2001-12-03 21:23:16 +0000
commit08a680ea8c322b4138f23cbdfd477907f091f6d2 (patch)
tree39eb83a457df4271eef322e07e139aa285eac945 /isys/Makefile
parent9789f119cdb67c6405c101f5e2a001f3e50fdd49 (diff)
downloadanaconda-08a680ea8c322b4138f23cbdfd477907f091f6d2.tar.gz
anaconda-08a680ea8c322b4138f23cbdfd477907f091f6d2.tar.xz
anaconda-08a680ea8c322b4138f23cbdfd477907f091f6d2.zip
we really want a non-diet libisys for post-install (or we have to make sure we don't get weird interactions between the diet isys and the glibc everything else we use)
Diffstat (limited to 'isys/Makefile')
-rw-r--r--isys/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/isys/Makefile b/isys/Makefile
index 2e6ba769b..46339817b 100644
--- a/isys/Makefile
+++ b/isys/Makefile
@@ -1,5 +1,7 @@
include ../Makefile.inc
+ARCH := $(patsubst i%86,i386,$(shell uname -m))
+ARCH := $(patsubst sparc%,sparc,$(ARCH))
CFLAGS = -ffunction-sections -I$(PYTHONINCLUDE) -I.. -Wall -Os -g -DHAVE_NFS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1
OBJECTS = nfsmount.o nfsmount_clnt.o nfsmount_xdr.o imount.o \
@@ -7,19 +9,18 @@ OBJECTS = nfsmount.o nfsmount_clnt.o nfsmount_xdr.o imount.o \
lang.o isofs.o pdc.o dns.o
SOBJECTS = $(patsubst %.o,%.lo,$(OBJECTS))
SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) isys.c
-DOBJECTS = $(patsubst %.o,%.do,$(OBJECTS) $(STATICOBJS))
STATICOBJS = otherinsmod.o
LOADLIBES = -lresolv -lz -lpci -lpopt -lpump -lext2fs -L./gzlib -lgunzip
PYMODULES = _isys.so
SUBDIRS = modutils gzlib
DIET = diet
-GENERATED = nfs_mountversion.h
+DOBJECTS = $(patsubst %.o,%.do,$(OBJECTS) $(STATICOBJS))
-STATICLIB=libisys.a($(OBJECTS))
+GENERATED = nfs_mountversion.h
ifeq ($(ARCH),i386)
-STATICLIB=libisys-diet.a($(DOBJECTS))
+DIETLIB=libisys-diet.a
endif
ifeq ($(ARCH),sparc)
@@ -35,7 +36,7 @@ endif
everything: $(TARGET)
-all: subdirs $(PYMODULES) $(STATICLIB)
+all: subdirs $(PYMODULES) libisys.a $(DIETLIB)
%.lo: %.c
$(CC) -c $(CFLAGS) -fPIC -o $@ $<
@@ -51,9 +52,10 @@ _silo.so: silo.c
libisys.a: libisys.a($(OBJECTS) $(STATICOBJS))
+libisys-diet.a: libisys-diet.a($(DOBJECTS))
+
clean:
- rm -f *.o *.so *.lo *.a *.pyc $(TARGET) $(SOBJECTS) $(OBJECTS)
- rm -f $(GENERATED) $(DOBJECTS)
+ rm -f *.o *.so *.lo *.a *.pyc $(TARGET) $(SOBJECTS) $(OBJECTS) $(GENERATED)
for d in $(SUBDIRS); do make -C $$d clean; done
install: all