Simplify utils/Makefile even more!

--HG--
extra : convert_revision : 0d1855a743e64c74ae070424a2f98cd7d87813d4
This commit is contained in:
Juan RP 2008-12-21 10:52:38 +01:00
parent 8d66cb9a57
commit d14b2332b5
1 changed files with 5 additions and 12 deletions

View File

@ -5,27 +5,20 @@ CFLAGS += -funroll-all-loops -ftree-loop-linear
LDFLAGS += -lprop
BINS ?= xbps-bin xbps-cmpver xbps-digest xbps-pkgdb
all: $(BINS) clean-objs
all: $(BINS)
.PHONY: all
xbps-cmpver.o: xbps_api.h
sha256.o: xbps_api.h sha256.h
xbps-digest.o: xbps_api.h sha256.h
xbps-pkgdb.o: xbps_api.h plist.h
plist.o: xbps_api.h plist.h
xbps-bin.o: xbps_api.h plist.h
xbps-bin: xbps-bin.o plist.o
$(CC) $(LDFLAGS) -o xbps-bin xbps-bin.o plist.o
$(CC) $(LDFLAGS) $^ -o $@
xbps-cmpver: xbps-cmpver.o
$(CC) -o xbps-cmpver xbps-cmpver.o
$(CC) $^ -o $@
xbps-digest: xbps-digest.o sha256.o
$(CC) -o xbps-digest xbps-digest.o sha256.o
$(CC) $^ -o $@
xbps-pkgdb: xbps-pkgdb.o plist.o
$(CC) $(LDFLAGS) -o xbps-pkgdb xbps-pkgdb.o plist.o
$(CC) $(LDFLAGS) $^ -o $@
.PHONY: clean
clean: clean-bins clean-objs