diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-09 16:07:56 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-09 16:07:56 +0000 |
commit | a699c519a2ff039cb64e6e6317aa7084d9fabd3a (patch) | |
tree | 78eab0aa56ce34149c08f8f1c061f0e4278f98bc /utils | |
parent | add43b13d71119e35c10ec87b2ad39a963b7dfde (diff) | |
download | anaconda-a699c519a2ff039cb64e6e6317aa7084d9fabd3a.tar.gz anaconda-a699c519a2ff039cb64e6e6317aa7084d9fabd3a.tar.xz anaconda-a699c519a2ff039cb64e6e6317aa7084d9fabd3a.zip |
added dependency stuff
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/utils/Makefile b/utils/Makefile index 7aeabd5d1..eb4227a7d 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -4,13 +4,21 @@ ARCH := $(patsubst i%86,i386,$(shell uname -m)) ARCH := $(patsubst sparc%,sparc,$(ARCH)) LOADLIBES = -L../isys -lisys -lpopt -CFLAGS = -Wall -g +CFLAGS = -Wall -g -I/usr/include/rpm LDFLAGS = -g ifneq ($(ARCH),ia64) MODDEPS=moddeps endif +ifeq (.depend,$(wildcard .depend)) +TARGET=all +else +TARGET=depend all +endif + +everything: $(TARGET) + all: modlist $(MODDEPS) genhdlist snarffont mapshdr readmap moddeps: moddeps.o @@ -21,7 +29,10 @@ moddeps: moddeps.o ../isys/modutils/obj/libobj.a -lrpm -lbz2 -lz -lpopt genhdlist: genhdlist.c - $(CC) -I/usr/include/rpm $(LDFLAGS) -o genhdlist genhdlist.c -lrpm -lbz2 -static -lz -lpopt -ldb + $(CC) $(LDFLAGS) -o genhdlist genhdlist.c -lrpm -lbz2 -static -lz -lpopt -ldb + +depends: + install: all mkdir -p $(DESTDIR)/usr/bin @@ -37,3 +48,10 @@ install: all # clean: rm -f modlist moddeps snarffont *.o + +depend: + $(CPP) -M $(CFLAGS) *.c > .depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif |