|
|
1.1 root 1: # /usr/src/libc/Makefile 7/23/91
2: # Assumes $(SRCPATH) defines root libc source directory, e.g. /usr/src/libc.
3: # To build a new libc.a, move to an empty object directory and
4: # type "make SRCPATH=/usr/src/libc" (or other pathname as appropriate).
5: # This takes about 20 minutes from scratch on 20 MHz 386.
6:
7: # Copyright module is first entry in the archive.
8: OBJ=\
9: copyright.o
10:
11: # Primary target.
12: # The order of targets here is significant.
13: # dstdio must be the last target, because it plays tricks to reduce size
14: # of executable if stdio is not required.
15: # dgen is next to last because e.g. perror() references stdio.
16: all: ROOT dcrt dstring dsys dgen dstdio
17: : libc done.
18:
19: # Pseudotargets.
20: # The lower case pseudotargets are made every time to check each subdirectory.
21: # The upper case pseudotargets indicate when the objects in a given directory
22: # were last made, allowing replacement of only the stale object files.
23: ROOT: $(OBJ)
24: ar rckus libc.a $?
25: touch $@
26: dcrt:
27: make SRCPATH=$(SRCPATH)/crt
28: dgen:
29: make SRCPATH=$(SRCPATH)/gen
30: dstdio:
31: make SRCPATH=$(SRCPATH)/stdio
32: dstring:
33: make SRCPATH=$(SRCPATH)/string
34: dsys:
35: make SRCPATH=$(SRCPATH)/sys
36:
37: # Secondary targets.
38: copyright.o: $(SRCPATH)/gen/copyright.c
39:
40: clean:
41: rm *.o
42:
43: # end of /usr/src/libc/Makefile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.