PACKAGE=petitboot
CC=gcc
INSTALL=install
-TWIN_CFLAGS=$(shell pkg-config --cflags libtwin)
-TWIN_LDFLAGS=$(shell pkg-config --libs libtwin)
+TWIN_CFLAGS?=$(shell pkg-config --cflags libtwin)
+TWIN_LDFLAGS?=$(shell pkg-config --libs libtwin)
LDFLAGS =
CFLAGS = -O0 -ggdb -Wall '-DPREFIX="$(PREFIX)"'
PARSERS = native yaboot
-ARTWORK = background.png cdrom.png hdd.png usbpen.png cursor
+ARTWORK = background.jpg cdrom.png hdd.png usbpen.png cursor
all: petitboot udev-helper
devices/%: CFLAGS+=-I.
install: all
- $(INSTALL) -D petitboot $(PREFIX)/sbin/petitboot
- $(INSTALL) -D udev-helper $(PREFIX)/sbin/udev-helper
- $(INSTALL) -Dd $(PREFIX)/share/petitboot/artwork/
- $(INSTALL) -t $(PREFIX)/share/petitboot/artwork/ \
+ $(INSTALL) -D petitboot $(DESTDIR)$(PREFIX)/sbin/petitboot
+ $(INSTALL) -D udev-helper $(DESTDIR)$(PREFIX)/sbin/udev-helper
+ $(INSTALL) -Dd $(DESTDIR)$(PREFIX)/share/petitboot/artwork/
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/petitboot/artwork/ \
$(foreach a,$(ARTWORK),artwork/$(a))
dist: $(PACKAGE)-$(VERSION).tar.gz