File:  [Research Unix] / researchv9 / X11 / src / X.V11R1 / util / makedepend / Imakefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:22:00 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#
# If you have source for cpp...
#
#ifdef CppSourcesPresent
    SRCS = include.c main.c parse.c pr.c cppsetup.c cpp.c cpy.y
    OBJS = include.o main.o parse.o pr.o cppsetup.o cpp.o cpy.o
 DEFINES = -DCPP '-DINCLUDEDIR="/usr/include"'
  CPPSRC = CppSourcesPresent

#else

#
# But if you don't have cpp source...
#
    SRCS = include.c main.c parse.c pr.c cppsetup.c
    OBJS = include.o main.o parse.o pr.o cppsetup.o
 DEFINES = '-DINCLUDEDIR="/usr/include"'

#endif

SingleProgramTarget(makedepend,$(OBJS),,)

cpy.c: cpy.y yylex.c
	yacc cpy.y
	sed -e '/^# *line/d' < y.tab.c > cpy.c
	rm -f y.tab.c

cpy.y: $(CPPSRC)/cpy.y
	rm -f $@
	cp $(CPPSRC)/cpy.y .

yylex.c: $(CPPSRC)/yylex.c
	rm -f $@
	sed -e 's/#if pdp11 | vax | mc68000/& | ns16000 | ibm032/' \
		$(CPPSRC)/yylex.c > yylex.c

cpp.c: $(CPPSRC)/cpp.c cpp.ed
	rm -f cpp.c
	/lib/cpp $(CPPSRC)/cpp.c \
		| cb \
		| sed -e '/^$$/d' -e '/^#/d' -e 's/	/ /g' > cpp.c
	sed -e '/^#/d' < cpp.ed | ed - cpp.c

cpp.o: cpp.c
cpy.o: cpy.c

clean::
	rm -f cpp.c cpy.? yylex.c

DependTarget()

unix.superglobalmegacorp.com

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