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

1.1       root        1: #
                      2: # This makefile is rumored to work with 4.1BSD.
                      3: #
                      4: 
                      5: TESTDIR = .
                      6: YACCRM = rm -f
                      7: IFLAG =
                      8: INSDIR = /usr/bin
                      9: 
                     10: #      There is an internal rule (rules.c) which can make
                     11: #      and object file "markfile.o" from "markfile" if the
                     12: #      "markfile" has a what(1) string in it.
                     13: #      Disable the $(MARKFILE) macro if the internal: rule
                     14: #      doesn't work on your system.
                     15: MARKFILE =
                     16: 
                     17: #      Turn off the GETU variable if you system does not have the
                     18: #      getu system call as documented in the CB unix manual.
                     19: GETU   =
                     20: 
                     21: #      RULES is defined to be the Columbus rules. It can be defined to
                     22: #      be the pwb rules by typing:
                     23: #              make -f make.mk RULES=pwbrules
                     24: #
                     25: RULES  = rules
                     26: 
                     27: #      For PWB systems the PWB define symbol must be in the CFLAGS macro.
                     28: #      Thus for pwb systems:
                     29: #          make -f make.mk CFLAGS="-O -DPWB" GETU= RULES=pwbrules LIBES=-lpw
                     30: #      will make a version of "make" for PWB systems.
                     31: 
                     32: 
                     33: OBJECTS =  \
                     34:        main.o \
                     35:        doname.o \
                     36:        misc.o \
                     37:        files.o \
                     38:        $(RULES).o \
                     39:        dosys.o \
                     40:        gram.o \
                     41:        dyndep.o \
                     42:        prtmem.o \
                     43:        $(MARKFILE)
                     44: 
                     45: CFLAGS = -O $(GETU)
                     46: 
                     47: all:  usgmake
                     48: 
                     49: usgmake:  $(OBJECTS)
                     50:        $(CC) -o usgmake $(OBJECTS)
                     51: 
                     52: gram.c:        gram.y
                     53: 
                     54: gram.o: gram.c
                     55: 
                     56: $(OBJECTS):  defs
                     57: 
                     58: install: all
                     59:        mv usgmake $(INSDIR)
                     60: 
                     61: clean:
                     62:        rm -f *.o usgmake gram.c

unix.superglobalmegacorp.com

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