wok-next view gen-init-cpio/stuff/Makefile @ rev 11942
gecko-mediaplayer up 1.0.3 to resolve cooker error
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Wed Feb 29 22:00:25 2012 -0800 (2012-02-29) |
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