VERSION		  = 6

CFLAGS+= -DPUBLIC
LIBS		  =
LINKER		  = $(CC)

MAKEFILE= Makefile

LOCAL_LIBS	  = libcbind.a

OBJS		  = ada_name.o \
		ada_perf.o \
		allocate.o \
		anonymous.o \
		buffer.o \
		c_perf.o \
		cbfe.o \
		cbind.o \
		cbpp.o \
		cdep.o \
		cpp.o \
		cpp_eval.o \
		cpp_perf.o \
		errors.o \
		files.o \
		format.o \
		gen.o \
		hash.o \
		htype.o \
		macro.o \
		nodeop.o \
		scan.o \
		stab.o \
		types.o \
		units.o \
		y.tab.o

COMMON_OBJS		= allocate.o\
		buffer.o\
		cpp.o\
		errors.o\
		files.o\
		cpp_perf.o\
		cpp_eval.o\
		macro.o\
		hash.o

FEOBJ			= cbfe.o\
		gen.o\
		ada_perf.o\
		ada_name.o\
		format.o\
		y.tab.o\
		scan.o\
		nodeop.o\
		c_perf.o\
		types.o\
		stab.o\
		units.o\
		type_util.o\
		anonymous.o

GENED_SRC		= y.tab.c\
		y.tab.h\
		c_perf.c\
		ada_perf.c\
		cpp_perf.c

SCRIPTS			= gen.last\
		gen.makefile\
		gen.diffs\
		hostinfo

all:	make

%c%y:;
%o%y:;

make::	hostinfo.h
make::	cpp_perf.c
make::	ada_perf.c
make::	c_perf.c
make::	y.tab.h
make::	$(OBJS)
make::	$(COMMON_OBJS)
make::	$(LOCAL_LIBS)
make::	cdep
make::	cbpp
make::	cbind
make::	cbfe

install: all
		- strip cbpp cbfe cbind cdep
		- rm -f $(HOME)/bin/cbpp $(HOME)/bin/cbfe $(HOME)/bin/cbind $(HOME)/bin/cdep
		- cp cbpp cbfe cbind cdep $(HOME)/bin




cbfe:	$(FEOBJ) $(LOCAL_LIBS)
		$(LINKER) $(LDFLAGS) $(FEOBJ) $(LOCAL_LIBS) $(LIBS) -o $@

cbpp:	cbpp.o $(LOCAL_LIBS)
		$(LINKER) $(LDFLAGS) cbpp.o $(LOCAL_LIBS) $(LIBS) -o $@

cdep:	cdep.o $(LOCAL_LIBS)
		$(LINKER) $(LDFLAGS) cdep.o $(LOCAL_LIBS) $(LIBS) -o $@

cbind:	cbind.o $(LOCAL_LIBS)
		$(LINKER) $(LDFLAGS) cbind.o $(LOCAL_LIBS) $(LIBS) -o $@

htype:	htype.c htype.o
		$(LINKER) $(LDFLAGS) htype.o $(LIBS) -o $@
		@ strip $@

libcbind.a:	$(COMMON_OBJS)
		@ rm -f $@
		ar rc $@ $(COMMON_OBJS)

clean::;	- rm -f cbind cbfe cbpp cdep
clean::;	- rm -f *.o
clean::;	- rm -f $(LOCAL_LIBS)
clean::;	- rm -f hostinfo.h htype htype.o

realclean:	clean
		- rm -f $(GENED_SRC)

depend: hostinfo.h y.tab.c y.tab.h cpp_perf.c ada_perf.c c_perf.c
		cdep -Mmakefile -S/usr/include *.c

mf:		hostinfo.h cpp_perf.c y.tab.c y.tab.h
		mkmf -f $(MAKEFILE)

backup:
		- rm -f $(HOME)/save/newc2a.tar.Z
		tar -chf $(HOME)/save/newc2a.tar *.1 *.c *.h *.y *.prf $(SCRIPTS) DOCS README makefile
		compress $(HOME)/save/newc2a.tar

touch:;	touch $(GENED_SRC)

hostinfo.h: htype hostinfo
		./hostinfo $@

c_perf.c:	c.prf
		gperf -N c_rsvd -t -p c.prf > $@

ada_perf.c:	ada.prf
		gperf -k1,4,'$$' -N ada_rsvd ada.prf > $@

cpp_perf.c:	cpp.prf
		gperf -N cpp_rsvd -t -p cpp.prf > $@

cpp_perf.o: cpp_perf.c lowlevel.h files.h hash.h cpp.h buffer.h
ada_perf.o: ada_perf.c

y.tab.h:	grammar.y
		yacc -d grammar.y

y.tab.c:	grammar.y
		yacc grammar.y

###
ada_name.o: ada_name.c
ada_name.o: ansi.h
ada_name.o: config.h
ada_name.o: host.h
ada_name.o: allocate.h
ada_name.o: ada_name.h
ada_name.o: hash.h
ada_name.o: files.h
ada_name.o: hostinfo.h
ada_name.o: il.h
ada_perf.o: ada_perf.c
allocate.o: allocate.c
allocate.o: ansi.h
allocate.o: config.h
allocate.o: allocate.h
anonymous.o: anonymous.c
anonymous.o: ansi.h
anonymous.o: host.h
anonymous.o: files.h
anonymous.o: hostinfo.h
anonymous.o: hash.h
anonymous.o: il.h
anonymous.o: nodeop.h
anonymous.o: allocate.h
anonymous.o: types.h
anonymous.o: stab.h
anonymous.o: ada_name.h
anonymous.o: anonymous.h
anonymous.o: config.h
anonymous.o: type_util.h
buffer.o: buffer.c
buffer.o: ansi.h
buffer.o: buffer.h
buffer.o: allocate.h
buffer.o: config.h
c_perf.o: c_perf.c
c_perf.o: ansi.h
c_perf.o: host.h
c_perf.o: files.h
c_perf.o: hash.h
c_perf.o: il.h
c_perf.o: y.tab.h
cbfe.o: cbfe.c
cbfe.o: ansi.h
cbfe.o: host.h
cbfe.o: files.h
cbfe.o: hostinfo.h
cbfe.o: hash.h
cbfe.o: buffer.h
cbfe.o: cpp.h
cbfe.o: il.h
cbfe.o: allocate.h
cbfe.o: types.h
cbfe.o: vendor.h
cbind.o: cbind.c
cbind.o: ansi.h
cbpp.o: cbpp.c
cbpp.o: ansi.h
cbpp.o: files.h
cbpp.o: hostinfo.h
cbpp.o: hash.h
cbpp.o: buffer.h
cbpp.o: cpp.h
cbpp.o: allocate.h
cdep.o: cdep.c
cdep.o: ansi.h
cdep.o: files.h
cdep.o: hostinfo.h
cdep.o: hash.h
cdep.o: buffer.h
cdep.o: cpp.h
cdep.o: cpp_hide.h
cdep.o: allocate.h
cpp.o: cpp.c
cpp.o: ansi.h
cpp.o: files.h
cpp.o: hostinfo.h
cpp.o: hash.h
cpp.o: host.h
cpp.o: buffer.h
cpp.o: cpp.h
cpp.o: cpp_hide.h
cpp.o: cpp_eval.h
cpp.o: allocate.h
cpp.o: config.h
cpp_eval.o: cpp_eval.c
cpp_eval.o: ansi.h
cpp_eval.o: host.h
cpp_eval.o: files.h
cpp_eval.o: hostinfo.h
cpp_eval.o: hash.h
cpp_eval.o: buffer.h
cpp_eval.o: cpp.h
cpp_eval.o: cpp_hide.h
cpp_eval.o: cpp_eval.h
cpp_eval.o: allocate.h
cpp_eval.o: config.h
cpp_perf.o: cpp_perf.c
cpp_perf.o: ansi.h
cpp_perf.o: files.h
cpp_perf.o: hash.h
cpp_perf.o: buffer.h
cpp_perf.o: cpp.h
cpp_perf.o: cpp_hide.h
errors.o: errors.c
files.o: files.c
files.o: ansi.h
files.o: hostinfo.h
files.o: config.h
files.o: files.h
format.o: format.c
format.o: ansi.h
format.o: format.h
gen.o: gen.c
gen.o: ansi.h
gen.o: host.h
gen.o: files.h
gen.o: hostinfo.h
gen.o: hash.h
gen.o: buffer.h
gen.o: il.h
gen.o: cpp.h
gen.o: cpp_hide.h
gen.o: cpp_eval.h
gen.o: allocate.h
gen.o: format.h
gen.o: ada_name.h
gen.o: vendor.h
gen.o: units.h
gen.o: config.h
hash.o: hash.c
hash.o: ansi.h
hash.o: hash.h
htype.o: htype.c
macro.o: macro.c
macro.o: ansi.h
macro.o: files.h
macro.o: hostinfo.h
macro.o: hash.h
macro.o: buffer.h
macro.o: cpp.h
macro.o: cpp_hide.h
macro.o: allocate.h
macro.o: config.h
nodeop.o: nodeop.c
nodeop.o: ansi.h
nodeop.o: host.h
nodeop.o: files.h
nodeop.o: hostinfo.h
nodeop.o: hash.h
nodeop.o: il.h
nodeop.o: allocate.h
nodeop.o: config.h
scan.o: scan.c
scan.o: ansi.h
scan.o: host.h
scan.o: files.h
scan.o: hostinfo.h
scan.o: hash.h
scan.o: buffer.h
scan.o: cpp.h
scan.o: cpp_hide.h
scan.o: allocate.h
scan.o: il.h
scan.o: nodeop.h
scan.o: types.h
scan.o: stab.h
scan.o: y.tab.h
scan.o: config.h
scan.o: type_util.h
stab.o: stab.c
stab.o: ansi.h
stab.o: host.h
stab.o: hash.h
stab.o: files.h
stab.o: hostinfo.h
stab.o: il.h
stab.o: allocate.h
stab.o: config.h
type_util.o: type_util.c
type_util.o: ansi.h
type_util.o: config.h
type_util.o: host.h
type_util.o: files.h
type_util.o: hostinfo.h
type_util.o: hash.h
type_util.o: il.h
type_util.o: type_util.h
types.o: types.c
types.o: ansi.h
types.o: host.h
types.o: files.h
types.o: hostinfo.h
types.o: hash.h
types.o: il.h
types.o: type_util.h
types.o: nodeop.h
types.o: stab.h
types.o: allocate.h
types.o: gen.h
types.o: ada_name.h
types.o: anonymous.h
types.o: config.h
units.o: units.c
units.o: ansi.h
units.o: files.h
units.o: hostinfo.h
units.o: units.h
units.o: allocate.h
units.o: vendor.h
units.o: config.h
y.tab.o: y.tab.c
y.tab.o: ansi.h
y.tab.o: host.h
y.tab.o: hash.h
y.tab.o: files.h
y.tab.o: il.h
y.tab.o: nodeop.h
y.tab.o: types.h
y.tab.o: type_util.h


syntax highlighted by Code2HTML, v. 0.9.1