Rev 41 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
include ../../../defs.mk
#include ../../../Makefile.defs
SRC6=./syntax
SRC1=../common
SRC2=${SRC1}/obj_c
SRC2A=${SRC1}/obj_tok
SRC2B=${SRC1}/obj_templ
SRC3=${SRC1}/construct
SRC4=${SRC1}/output
SRC5=${SRC1}/parse
SRC7=${SRC1}/utility
SPEC=../../lib/tdf/def_4_1.db
# Standard variables
TCCOPTS= -Yposix1 -Xs
CCOPTS= ${TCCOPTS} -I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5}\
-I${SRC6} -I${SRC7}
LIBS=
CFLAGS= -I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5} -I${SRC6} -I${SRC7}
# Dependencies and construction rules
PROG= tdfc2
OBJS= access.o allocate.o assign.o basetype.o buffer.o c_class.o capsule.o\
cast.o catalog.o char.o check.o chktype.o class.o compile.o\
constant.o construct.o convert.o copy.o debug.o declare.o decode.o\
derive.o destroy.o diag.o diag2.o dump.o encode.o error.o exception.o\
exp.o expression.o file.o function.o hash.o identifier.o init.o\
initialise.o instance.o inttype.o label.o lex.o literal.o load.o\
macro.o main.o mangle.o member.o merge.o namespace.o operator.o\
option.o overload.o parse.o pragma.o predict.o preproc.o print.o\
printf.o psyntax1.o psyntax2.o psyntax3.o quality.o redeclare.o\
rewrite.o save.o shape.o statement.o stmt.o struct.o syntax1.o\
syntax2.o syntax3.o system.o table.o template.o throw.o tok.o tokdef.o\
token.o typeid.o unmangle.o variable.o virtual.o xalloc.o
.PATH: ${SRC1} ${SRC2} ${SRC2A} ${SRC2B} ${SRC3} ${SRC4} ${SRC5} ${SRC6}\
${SRC7}
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
install: $(PROG)
install -d $(INSTALL_BINDIR)
install $(PROG) $(INSTALL_BINDIR)/$(PROG)
clean:
rm -f $(OBJS)
rm -f $(PROG)
depend:
mkdep $(CFLAGS) ${SRC1}/*.c ${SRC2}/*.c ${SRC3}/*.c ${SRC4}/*.c ${SRC5}/*.c ${SRC6}/*.c ${SRC7}/*.c
#-include .depend
#CAT=cat
#CALCULUS=calculus
#MAKE_ERR=make_err
#MAKE_TDF=make_tdf
#SID=sid
#SIDOPTS=-l ossg-c -s numeric -s split -s no-lines
#
#ALG=${SRC1}/c_class.alg
#TEMPL=${SRC2B}/bits.h ${SRC2B}/err_ext.h ${SRC2B}/loc_ext.h
#SYNTAX=${SRC6}/syntax.sid ${SRC6}/syntax.act
#PSYNTAX=${SRC5}/psyntax.sid ${SRC5}/psyntax.act
#
#SID_OUT=${SRC6}/syntax1.c ${SRC6}/syntax.h
#PSID_OUT=${SRC5}/psyntax1.c ${SRC5}/psyntax.h
#C_OUT=${SRC2}/c_class.h
#TOK_OUT=${SRC2A}/c_class.h
#ERR_OUT=${SRC7}/errors1.h ${SRC7}/errors2.h ${SRC7}/errors3.h ${SRC7}/opts.h
#TDF_OUT=${SRC4}/tdf1.h
#
#ALL_OUT=${SID_OUT} ${PSID_OUT} ${C_OUT} ${TOK_OUT} ${ERR_OUT} ${TDF_OUT}
#
#auto : ${ALL_OUT}
#
#${SRC6}/syntax1.c : ${SYNTAX}
# ${SID} ${SIDOPTS} ${SYNTAX} ${SRC6}/syntax@.c ${SRC6}/syntax.h
#
#${SRC5}/psyntax1.c : ${PSYNTAX}
# ${SID} ${SIDOPTS} ${PSYNTAX} ${SRC5}/psyntax@.c ${SRC5}/psyntax.h
#
#${SRC2}/c_class.h : ${ALG} ${TEMPL}
# @${REMOVE} ${SRC2}/*.h
# ${CALCULUS} -a -x ${ALG} ${SRC2}
# ${CALCULUS} ${ALG} -T${SRC2B}/bits.h ${SRC2}/bits.h
# ${CALCULUS} ${ALG} -T${SRC2B}/err_ext.h ${SRC2}/err_ext.h
# ${CALCULUS} ${ALG} -T${SRC2B}/loc_ext.h ${SRC2}/loc_ext.h
#
#${SRC2A}/c_class.h : ${ALG} ${TEMPL}
# @${REMOVE} ${SRC2A}/*.h
# ${CALCULUS} -a -x -t ${ALG} ${SRC2A}
# ${CALCULUS} -t ${ALG} -T${SRC2B}/bits.h ${SRC2A}/bits.h
# ${CALCULUS} -t ${ALG} -T${SRC2B}/err_ext.h ${SRC2A}/err_ext.h
# ${CALCULUS} -t ${ALG} -T${SRC2B}/loc_ext.h ${SRC2A}/loc_ext.h
#
#${SRC7}/errors1.h : ${SRC7}/catalog.err
# @${REMOVE} ${SRC7}/errors1.h
# ${MAKE_ERR} ${SRC7}/catalog.err ${SRC7}/errors1.h
#
#${SRC7}/errors2.h : ${SRC7}/catalog.err ${SRC7}/extra.err
# @${REMOVE} ${SRC7}/errors2.h
# ${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} > ${SRC7}/errors2.h
#
#${SRC7}/errors3.h : ${SRC7}/catalog.err ${SRC7}/extra.err
# @${REMOVE} ${SRC7}/errors3.h
# ${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} -d > ${SRC7}/errors3.h
#
#${SRC7}/opts.h : ${SRC7}/catalog.err
# @${REMOVE} ${SRC7}/opts.h
# ${MAKE_ERR} -u ${SRC7}/catalog.err ${SRC7}/opts.h
#
#${SRC4}/tdf1.h : ${SPEC} ${SRC2B}/tdf1.h
# @${REMOVE} ${SRC4}/tdf1.h
# ${MAKE_TDF} ${SPEC} ${SRC2B}/tdf1.h ${SRC4}/tdf1.h
#
#auto_clobber :
# @${REMOVE} ${SRC6}/syntax*.c ${SRC6}/syntax.h
# @${REMOVE} ${SRC5}/psyntax*.c ${SRC5}/psyntax.h
# @${REMOVE} ${SRC2}/*.h
# @${REMOVE} ${SRC2A}/*.h
# @${REMOVE} ${ERR_OUT}
# @${REMOVE} ${TDF_OUT}