~ubuntu-core-dev/usplash/ubuntu

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Scott James Remnant
  • Date: 2006-06-09 15:01:23 UTC
  • Revision ID: scott@netsplit.com-20060609150123-fee9f1bc83d30884
import 0.3-1 into bzr

Show diffs side-by-side

added added

removed removed

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