Annotation of 43BSD/contrib/B/src/b/Makefile.gen, revision 1.1.1.1

1.1       root        1: # Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984.
                      2: # $Header: Makefile.gen,v 1.3 85/08/27 18:04:51 timo Exp $
                      3: 
                      4: # Filled in by ../../Setup:
                      5: CFLAGS= -O  -DNDEBUG -DBSD4_2 -DCWI
                      6: 
                      7: # place for 'b', within the distribution source:
                      8: BDEST=../../bin
                      9: # full pathname of place for auxiliary files, within the distribution:
                     10: LDEST=`cd ../../lib; pwd`
                     11: 
                     12: # b shell script:
                     13: B            = b
                     14: # Auxiliary C programs:
                     15: PROGRAMS      = convert retab
                     16: # Auxiliary shell scripts:
                     17: SCRIPTS              = b_p mksugg
                     18: 
                     19: MAKEFILE      = Makefile
                     20: 
                     21: OBJS         = convert.o retab.o
                     22: 
                     23: PRINT        = print
                     24: 
                     25: SRCS         = b.sh b_p.sh mksugg.sh convert.c par.h retab.c
                     26: 
                     27: all:           $(PROGRAMS)
                     28: 
                     29: convert:       convert.o
                     30:                $(CC) $(LDFLAGS) $(CFLAGS) convert.o -o convert
                     31: 
                     32: retab:         retab.o
                     33:                $(CC) $(CFLAGS) retab.o -o retab
                     34: retab.o:       par.h
                     35: 
                     36: clean:;                @rm -f $(PROGRAMS) $(OBJS)
                     37: 
                     38: # ../../Setup may add 'termcap' to the following line:
                     39: install:       all ldest
                     40:                for f in $(SCRIPTS); do cp $$f.sh $(LDEST)/$$f; done
                     41:                for f in $(PROGRAMS); do cp $$f $(LDEST)/$$f; done
                     42:                cp $(B).sh $(BDEST)/$(B)
                     43: 
                     44: ldest:
                     45:                @echo "Changing pathnames in b.sh and b_p.sh"
                     46:                @(echo "/^B_LIB=/s?B_LIB=.*?B_LIB=$(LDEST)?";\
                     47:                 echo "w"; echo "q") | ed - b.sh
                     48:                @(echo "/^B_LIB=/s?B_LIB=.*?B_LIB=$(LDEST)?";\
                     49:                 echo "w"; echo "q") | ed - b_p.sh
                     50: 
                     51: termcap:
                     52:                cd ../libtermcap; make ETC=$(LDEST) termcap
                     53: 
                     54: print:;                @$(PRINT) $(SRCS)

unix.superglobalmegacorp.com

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