Subversion Repositories tendra.SVN

Rev

Rev 7 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# $Id$

# Standard directories and files
.include "../Makefile.inc"

SRCC=./obj_c
SRCTOK=${.CURDIR}/obj_tok
SRCX=${.CURDIR}/../shared

# Standard variables

WARNS?=         2

TCCOPTS=        -Yansi -Xs
CCOPTS=         ${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC}\
                -I${SRCTOK} -I${SRCX}
LIBS=

CFLAGS+=-I../shared -I$(SRCC)

# Dependencies and construction rules

PROG=           ${.CURDIR:T}

OBJS=           error.o input.o lex.o main.o output.o syntax.o tdf.o xalloc.o

$(PROG): $(OBJS)
        $(CC) -o $(PROG) $(LDFLAGS) $(OBJS)

        
depend:
        mkdep $(CFLAGS) *.c

clean:
        rm -f $(OBJS)
        rm -f $(PROG)



.PATH:          ${SRCC} ${SRCTOK} ${SRCX}

#CALCULUS=calculus
#LEXI=lexi
#SID=sid
#SIDOPTS=-l ansi-c -s no-lines
#
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
#C_OUT=${SRC2}/tdf.h
#TOK_OUT=${SRC2A}/tdf.h
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
#
#auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
#
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
#       @${REMOVE} ${SID_OUT}
#       ${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
#
#${SRC2}/tdf.h : ${SRC}/tdf.alg
#       @${REMOVE} ${SRC2}/*.h
#       ${CALCULUS} -a -x ${SRC}/tdf.alg ${SRC2}
#
#${SRC2A}/tdf.h : ${SRC}/tdf.alg
#       @${REMOVE} ${SRC2A}/*.h
#       ${CALCULUS} -a -x -t ${SRC}/tdf.alg ${SRC2A}
#
#${SRC}/lexer.h : ${SRC}/lexer.lxi
#       @${REMOVE} ${SRC}/lexer.h
#       ${LEXI} ${SRC}/lexer.lxi ${SRC}/lexer.h
#
#${SRC}/keyword.h : ${SRC}/lexer.lxi
#       @${REMOVE} ${SRC}/keyword.h
#       ${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h