ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lmainit/Makefile
Revision: 1.2
Committed: Sat Dec 7 21:52:03 2002 UTC (21 years, 4 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 CFLAGS = -Os -pipe -fno-exceptions
2 VERSION = $(shell bash -c ". syslib.sh && echo \$$VERSION")
3
4 syslib = /etc/rc.d
5
6 %.so: %.c
7 $(CC) $(CFLAGS) -Iinclude -shared -o $@ $<
8
9 all: lmainit.so
10
11 install: all
12 install -o0 -g0 -m755 -d $(syslib)/fac
13 install -o0 -g0 -m644 fac/*.fac $(syslib)/fac
14 install -o0 -g0 -m644 boot.fac standard.fac syslib.sh $(syslib)
15 bash ./mklinks $(syslib) boot.fac standard.fac
16 install -o0 -g0 -m755 lmainit.so bcheckrc brc rc $(syslib)
17 install -o0 -g0 -m755 facility /sbin
18 @echo "Do not forget to create a suitable /etc/rc.values and"
19 @echo "edit your /etc/inittab!"
20
21 fixperm:
22 chown -R root.root .
23 chmod -R u=rwX,go=rX .
24
25 clean:
26 rm -f lmainit.so
27
28 dist: all fixperm
29 mkdir lmainit-$(VERSION)
30 cp -Rlp fac boot.fac standard.fac syslib.sh \
31 lmainit.c lmainit-*.so include \
32 facility bcheckrc brc rc \
33 rc.values rc.values.isl inittab \
34 README INSTALL COPYING NEWS Makefile \
35 mklinks cleantmp \
36 lmainit-$(VERSION)
37 tar cvf lmainit-$(VERSION).tar lmainit-$(VERSION)
38 rm -rf lmainit-$(VERSION)
39 gzip -9fv lmainit-$(VERSION).tar
40