|
|
1.1 root 1: # If your system lacks the ANSI routines memmove and strtoul
2: # restore the commented-out definition of $(ANSI)
3:
4: ANSI = # memmove.o strtoul.o
5: OBJ = fsort.o rsort.o number.o field.o tables.o merge.o $(ANSI)
6:
7: sort: $(OBJ) files.o
8: $(CC) $(CFLAGS) $(OBJ) files.o -o sort
9: rm files.o
10:
11: # A cheat on classic System V stdio. If "make fast" compiles
12: # successfully, you'll get a faster sort.
13:
14: fast: $(OBJ) cfiles.o cgets.o
15: $(CC) $(CFLAGS) $(OBJ) cfiles.o cgets.o -o sort
16: rm cfiles.o
17:
18: test: checksum
19: PATH=.:$$PATH sorttest
20:
21: fsort.o: fsort.h
22: rsort.o: fsort.h
23: number.o: fsort.h
24: field.o: fsort.h
25: tables.o: fsort.h
26: files.o: fsort.h
27: merge.o: fsort.h
28: cfiles.o: fsort.h
29:
30: clean:
31: rm -f *.o sort in in1 in2 out xx xsort ysort *.out
32: rm -f unwritablefile linecount -k - -o checksum* xx.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.