wok-current view gen-init-cpio/stuff/Makefile @ rev 6541
Up: xorg-xf86-video-ati to 6.13.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 06 22:04:17 2010 +0000 (2010-10-06) |
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