X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=Makefile;h=642850d84ef578284644525bb71283d9e84c823a;hp=a9ae25c09fb65f187fdc6e5adeb5d1736ad41a3b;hb=bd803b47266f399c41c7e560b8769ef172f0fca9;hpb=db8001f511f8e8d928aa82113431067f968f4966 diff --git a/Makefile b/Makefile index a9ae25c..642850d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ PREFIX?=/usr +VERSION=0.0.1 +PACKAGE=petitboot CC=gcc INSTALL=install TWIN_CFLAGS=$(shell pkg-config --cflags libtwin) @@ -7,7 +9,7 @@ TWIN_LDFLAGS=$(shell pkg-config --libs libtwin) LDFLAGS = CFLAGS = -O0 -ggdb -Wall '-DPREFIX="$(PREFIX)"' -PARSERS = native +PARSERS = native yaboot ARTWORK = background.png cdrom.png hdd.png usbpen.png cursor all: petitboot udev-helper @@ -18,7 +20,7 @@ petitboot: petitboot.o devices.o petitboot: LDFLAGS+=$(TWIN_LDFLAGS) petitboot: CFLAGS+=$(TWIN_CFLAGS) -udev-helper: devices/udev-helper.o devices/params.o \ +udev-helper: devices/udev-helper.o devices/params.o devices/yaboot-cfg.o \ $(foreach p,$(PARSERS),devices/$(p)-parser.o) $(CC) $(LDFLAGS) -o $@ $^ @@ -31,6 +33,18 @@ install: all $(INSTALL) -t $(PREFIX)/share/petitboot/artwork/ \ $(foreach a,$(ARTWORK),artwork/$(a)) +dist: $(PACKAGE)-$(VERSION).tar.gz + +$(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION) + tar czvf $@ $^ + +$(PACKAGE)-$(VERSION): clean + mkdir $@ $@/devices + cp -a artwork $@ + cp *.[ch] $@ + cp -a devices/*.[ch] $@/devices/ + cp Makefile $@ + clean: rm -f petitboot rm -f udev-helper