1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
CC=gcc
CFLAGS=-g -Wall
LDFLAGS=
CPPFLAGS=-D_GNU_SOURCE
INCLUDES=-Ibogl
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS)
INSTALL = /usr/bin/install -c
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_PROGRAM = $(INSTALL) -m 755
TARGETS = usplash usplash_write
all: bogl $(TARGETS)
usplash_OBJECTS = usplash.o usplash-testcard.o usplash-testcard-theme.o
usplash_LIBS = bogl/libbogl.a
usplash: $(usplash_OBJECTS) $(usplash_LIBS)
$(LINK) -o $@ $^ -ldl
usplash_write_OBJECTS = usplash_write.o
usplash_write: $(usplash_write_OBJECTS)
$(LINK) -o $@ $^
bogl:
$(MAKE) -C bogl
.c.o:
$(COMPILE) -o $@ -c $<
.png.c:
./bogl/pngtobogl $< > $@
.bdf.c:
./bogl/bdftobogl $< > $@
install:
$(INSTALL_PROGRAM) usplash $(DESTDIR)/sbin
$(INSTALL_PROGRAM) usplash_write $(DESTDIR)/sbin
clean:
-$(MAKE) -C bogl clean
-rm -f $(TARGETS) $(usplash_OBJECTS) $(usplash_write_OBJECTS)
-rm -f *~
.PHONY: all bogl install clean
.SUFFIXES: .png .bdf
|