diff options
-rw-r--r-- | collage/Makefile | 7 | ||||
-rw-r--r-- | utils/Makefile | 9 |
2 files changed, 13 insertions, 3 deletions
diff --git a/collage/Makefile b/collage/Makefile index 38450774d..f20c76eed 100644 --- a/collage/Makefile +++ b/collage/Makefile @@ -1,8 +1,13 @@ include ../Makefile.inc +ISYSLIB=isys +ifeq ($(ARCH),i386) +ISYSLIB=isys-diet +endif + CFLAGS = -Wall -g -O2 LDFLAGS = -g -LOADLIBES = -L../isys -L../isys/gzlib -lisys -lgunzip -lresolv -lz +LOADLIBES = -L../isys -L../isys/gzlib -l$(ISYSLIB) -lgunzip -lresolv -lz ifeq (.depend,$(wildcard .depend)) TARGET=all diff --git a/utils/Makefile b/utils/Makefile index e9aac399f..fbd255e84 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -3,7 +3,12 @@ include ../Makefile.inc ARCH := $(patsubst i%86,i386,$(shell uname -m)) ARCH := $(patsubst sparc%,sparc,$(ARCH)) -LOADLIBES = -L../isys -lisys -lpopt +ISYSLIB=isys +ifeq ($(ARCH),i386) +ISYSLIB=isys-diet +endif + +LOADLIBES = -L../isys -l$(ISYSLIB) -lpopt CFLAGS = -Wall -g -I/usr/include/rpm -I.. LDFLAGS = -g -static MODDEPS = moddeps @@ -18,7 +23,7 @@ everything: $(TARGET) all: modlist $(MODDEPS) genhdlist snarffont mapshdr readmap -modlist: modlist.o ../isys/libisys.a +modlist: modlist.o moddeps: moddeps.o $(CC) $(LDFLAGS) -o moddeps moddeps.o ../loader/modules.o \ |