Annotation of researchv9/X11/src/X.V11R1/util/makedepend/Imakefile, revision 1.1.1.1

1.1       root        1: #
                      2: # If you have source for cpp...
                      3: #
                      4: #ifdef CppSourcesPresent
                      5:     SRCS = include.c main.c parse.c pr.c cppsetup.c cpp.c cpy.y
                      6:     OBJS = include.o main.o parse.o pr.o cppsetup.o cpp.o cpy.o
                      7:  DEFINES = -DCPP '-DINCLUDEDIR="/usr/include"'
                      8:   CPPSRC = CppSourcesPresent
                      9: 
                     10: #else
                     11: 
                     12: #
                     13: # But if you don't have cpp source...
                     14: #
                     15:     SRCS = include.c main.c parse.c pr.c cppsetup.c
                     16:     OBJS = include.o main.o parse.o pr.o cppsetup.o
                     17:  DEFINES = '-DINCLUDEDIR="/usr/include"'
                     18: 
                     19: #endif
                     20: 
                     21: SingleProgramTarget(makedepend,$(OBJS),,)
                     22: 
                     23: cpy.c: cpy.y yylex.c
                     24:        yacc cpy.y
                     25:        sed -e '/^# *line/d' < y.tab.c > cpy.c
                     26:        rm -f y.tab.c
                     27: 
                     28: cpy.y: $(CPPSRC)/cpy.y
                     29:        rm -f $@
                     30:        cp $(CPPSRC)/cpy.y .
                     31: 
                     32: yylex.c: $(CPPSRC)/yylex.c
                     33:        rm -f $@
                     34:        sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \
                     35:                $(CPPSRC)/yylex.c > yylex.c
                     36: 
                     37: cpp.c: $(CPPSRC)/cpp.c cpp.ed
                     38:        rm -f cpp.c
                     39:        /lib/cpp $(CPPSRC)/cpp.c \
                     40:                | cb \
                     41:                | sed -e '/^$$/d' -e '/^#/d' -e 's/     / /g' > cpp.c
                     42:        sed -e '/^#/d' < cpp.ed | ed - cpp.c
                     43: 
                     44: cpp.o: cpp.c
                     45: cpy.o: cpy.c
                     46: 
                     47: clean::
                     48:        rm -f cpp.c cpy.? yylex.c
                     49: 
                     50: DependTarget()

unix.superglobalmegacorp.com

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