wok view gen-init-cpio/stuff/Makefile @ rev 6035
Up evince (2.30.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 16 18:20:53 2010 +0200 (2010-08-16) |
parents | |
children |
line source
2 DESTDIR =
3 PREFIX = /
5 MKDIR = /bin/mkdir
6 INSTALL = /bin/install -c -m 755
8 CC = /usr/bin/gcc
9 LD = /usr/bin/gcc
11 CFLAGS += -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts \
12 -Wpointer-arith -Wcast-align -Wsign-compare
14 #pretty print!
15 E = @echo
16 Q = @
18 all: gen_init_cpio
19 .PHONY: all
20 .DEFAULT: all
22 %.o: %.c
23 $(E) " compile " $@
24 $(Q) $(CC) -c $(CFLAGS) $< -o $@
26 gen_init_cpio: gen_init_cpio.o
27 $(E) ">>build " $@
28 $(Q) $(LD) $(LDFLAGS) $@.o -o $@ $(LIB_OBJS)
30 clean:
31 $(E) " clean "
32 $(Q) rm -f gen_init_cpio *.o
33 .PHONY: clean
35 install: all
36 $(MKDIR) -p $(DESTDIR)$(PREFIX)sbin/
37 cp gen_init_cpio $(DESTDIR)$(PREFIX)sbin/
38 chmod -R 755 ${DESTDIR}${PREFIX}sbin/
39 .PHONY: install
41 uninstall:
42 rm $(DESTDIR)$(PREFIX)sbin/gen_init_cpio
43 .PHONY: uninstall