wok view gen-init-cpio/stuff/Makefile @ rev 9750

mpfr: add upstream patches
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 11 00:48:49 2011 +0200 (2011-05-11)
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