1 # Makefile for the libraries
2
3 # This makefile runs make in all the subdirectories of the src/lib tree.
4 # See ansi/Makefile for a further explanation.
5
6 INSTALLOPTS =
7
8 MAKE = exec make -$(MAKEFLAGS)
9
10 usage:
11 @echo "Usage: make all" >&2 # Compile all library functions" >&2
12 @echo " make install # Backup /usr/lib/*.a first!" >&2
13 @echo " make clean # Delete .o and .a files" >&2
14 @false
15
16 # Libraries yet to be added to Solaris Minix are commented out.
17 all:
18 cd ansi && $(MAKE)
19 cd curses && $(MAKE)
20 cd editline && $(MAKE)
21 cd fphook && $(MAKE)
22 cd ip && $(MAKE)
23 cd liby && $(MAKE)
24 cd math && $(MAKE)
25 cd other && $(MAKE)
26 cd posix && $(MAKE)
27 cd stdio && $(MAKE)
28 cd sunsyscall && $(MAKE)
29 cd syslib && $(MAKE)
30 cd sun4 && $(MAKE)
31
32 install: all
33 $(MAKE) install_sun4
34
35 # Installation for Solaris Minix
36
37 install_sun4: \
38 $(MX_LIB)/crtso.o \
39 $(MX_LIB)/head.o \
40 $(MX_LIB)/libc.a \
41 $(MX_LIB)/libcurses.a \
42 $(MX_LIB)/libedit.a \
43 $(MX_LIB)/liby.a \
44 $(MX_LIB)/smx_userprog.map
45
46
47 $(MX_LIB)/crtso.o: crtso.o
48 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
49
50 $(MX_LIB)/end.o: end.o
51 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
52
53 $(MX_LIB)/head.o: head.o
54 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
55
56 $(MX_LIB)/libc.a: libc.a
57 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
58
59 $(MX_LIB)/libcurses.a: libcurses.a
60 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
61
62 $(MX_LIB)/libedit.a: libedit.a
63 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
64
65 $(MX_LIB)/liby.a: liby.a
66 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
67
68 $(MX_LIB)/smx_userprog.map: smx_userprog.map
69 install $(INSTALLOPTS) -m 644 -f $(MX_LIB) $?
70
71
72 clean:
73 rm -rf *.[oa] */*.o */*/*.o */*.bak */*/*.bak
74
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.