Annotation of researchv10no/cmd/sort/Makefile, revision 1.1.1.1

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 optiona.o $(ANSI)
                      6: 
                      7: sort:  $(OBJ) files.o
                      8:        if make CC=$(CC) CFLAGS="$(CFLAGS)" cgets.o 1>/dev/null 2>&1; \
                      9:         then make CC=$(CC) CFLAGS="$(CFLAGS)" fast; \
                     10:        else make CC=$(CC) CFLAGS="$(CFLAGS)" slow; \
                     11:         fi
                     12: 
                     13: slow:  $(OBJ) files.o
                     14:        $(CC) $(CFLAGS) $(OBJ) files.o -o sort
                     15:        rm -f files.o cfiles.o
                     16: 
                     17: # A cheat on classic System V stdio.  If cgets.c compiles
                     18: # successfully, you'll get a faster sort.
                     19: 
                     20: fast:  $(OBJ) cfiles.o cgets.o
                     21:        $(CC) $(CFLAGS) $(OBJ) cfiles.o cgets.o -o sort
                     22:        rm -f files.o cfiles.o
                     23: 
                     24: test:
                     25:        -chmod +x sorttest
                     26:        PATH=.:$$PATH sorttest
                     27: 
                     28: fsort.o: fsort.h
                     29: rsort.o: fsort.h
                     30: number.o: fsort.h
                     31: field.o: fsort.h
                     32: tables.o: fsort.h
                     33: files.o: fsort.h
                     34: merge.o: fsort.h
                     35: optiona.o: fsort.h
                     36: cfiles.o: fsort.h
                     37: 
                     38: clean:
                     39:        rm -f *.o sort in in1 in2 out xx xsort ysort *.out 
                     40:        rm -f unwritablefile linecount -k - -o xx.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.