wok-next view gen-init-cpio/stuff/Makefile @ rev 8532

Don't need to setup src and _pkg varibles in dvdauthor receipt.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 13 03:35:31 2011 +0000 (2011-02-13)
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