File: Makefile

package info (click to toggle)
usplash 0.3e
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 852 kB
  • ctags: 739
  • sloc: ansic: 7,936; sh: 254; makefile: 173; perl: 26
file content (58 lines) | stat: -rw-r--r-- 965 bytes parent folder | download
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