wok annotate gen-init-cpio/stuff/Makefile @ rev 5643

Up lguest 2.6.24
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 28 22:15:48 2010 +0200 (2010-05-28)
parents
children
rev   line source
slaxemulator@5345 1
slaxemulator@5345 2 DESTDIR =
slaxemulator@5345 3 PREFIX = /
slaxemulator@5345 4
slaxemulator@5345 5 MKDIR = /bin/mkdir
slaxemulator@5345 6 INSTALL = /bin/install -c -m 755
slaxemulator@5345 7
slaxemulator@5345 8 CC = /usr/bin/gcc
slaxemulator@5345 9 LD = /usr/bin/gcc
slaxemulator@5345 10
slaxemulator@5345 11 CFLAGS += -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts \
slaxemulator@5345 12 -Wpointer-arith -Wcast-align -Wsign-compare
slaxemulator@5345 13
slaxemulator@5345 14 #pretty print!
slaxemulator@5345 15 E = @echo
slaxemulator@5345 16 Q = @
slaxemulator@5345 17
slaxemulator@5345 18 all: gen_init_cpio
slaxemulator@5345 19 .PHONY: all
slaxemulator@5345 20 .DEFAULT: all
slaxemulator@5345 21
slaxemulator@5345 22 %.o: %.c
slaxemulator@5345 23 $(E) " compile " $@
slaxemulator@5345 24 $(Q) $(CC) -c $(CFLAGS) $< -o $@
slaxemulator@5345 25
slaxemulator@5345 26 gen_init_cpio: gen_init_cpio.o
slaxemulator@5345 27 $(E) ">>build " $@
slaxemulator@5345 28 $(Q) $(LD) $(LDFLAGS) $@.o -o $@ $(LIB_OBJS)
slaxemulator@5345 29
slaxemulator@5345 30 clean:
slaxemulator@5345 31 $(E) " clean "
slaxemulator@5345 32 $(Q) rm -f gen_init_cpio *.o
slaxemulator@5345 33 .PHONY: clean
slaxemulator@5345 34
slaxemulator@5345 35 install: all
slaxemulator@5345 36 $(MKDIR) -p $(DESTDIR)$(PREFIX)sbin/
slaxemulator@5345 37 cp gen_init_cpio $(DESTDIR)$(PREFIX)sbin/
slaxemulator@5345 38 chmod -R 755 ${DESTDIR}${PREFIX}sbin/
slaxemulator@5345 39 .PHONY: install
slaxemulator@5345 40
slaxemulator@5345 41 uninstall:
slaxemulator@5345 42 rm $(DESTDIR)$(PREFIX)sbin/gen_init_cpio
slaxemulator@5345 43 .PHONY: uninstall