Subversion Repositories tendra.SVN

Rev

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

# Automatically generated by make_mf version 1.1

# Standard directories and files
BASE=/u/g/release/Source
UTIL=${BASE}/src/utilities
SRC=${UTIL}/lexi
SRCX=${UTIL}/shared

# Standard variables

CC=tcc
TCCOPTS=-Yansi -Xs
CCOPTS=${TCCOPTS} -I${SRC} -I${SRCX}
MAIN_CC=${CC} ${CCOPTS} -c
LINK_CC=${CC} ${TCCOPTS}
LIBS=

REMOVE=rm -f
MOVE=mv
COPY=cp
ECHO=echo
SHELL=/bin/sh

# Dependencies and construction rules

NAME=lexi
EXTRA=auto
EXTRA_CLEAN=
EXTRA_CLOBBER=

OFILES=char.o error.o lex.o main.o output.o syntax.o xalloc.o

${NAME} : ${OFILES}
        ${LINK_CC} -o ${NAME} ${OFILES} ${LIBS}

all : ${EXTRA} ${NAME}
        @${ECHO} all done

extra : ${EXTRA}
        @${ECHO} done

char.o : ${SRC}/char.c ${SRC}/char.h ${SRCX}/config.h ${SRCX}/error.h\
 ${SRCX}/xalloc.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRC}/char.c

error.o : ${SRCX}/error.c ${SRCX}/config.h ${SRCX}/error.h\
 ${SRCX}/release.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRCX}/error.c

lex.o : ${SRC}/lex.c ${SRCX}/config.h ${SRCX}/error.h ${SRC}/keyword.h\
 ${SRC}/lex.h ${SRC}/lexer.h ${SRC}/syntax.h ${SRCX}/xalloc.h\
 ${SRCX}/ossg.h ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRC}/lex.c

main.o : ${SRC}/main.c ${SRC}/char.h ${SRCX}/config.h ${SRCX}/error.h\
 ${SRC}/lex.h ${SRC}/output.h ${SRC}/syntax.h ${SRCX}/ossg.h\
 ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRC}/main.c

output.o : ${SRC}/output.c ${SRC}/char.h ${SRCX}/config.h ${SRCX}/error.h\
 ${SRC}/lex.h ${SRC}/output.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRC}/output.c

syntax.o : ${SRC}/syntax.c ${SRC}/char.h ${SRCX}/config.h ${SRCX}/error.h\
 ${SRC}/lex.h ${SRC}/syntax.h ${SRCX}/xalloc.h ${SRCX}/ossg.h\
 ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRC}/syntax.c

xalloc.o : ${SRCX}/xalloc.c ${SRCX}/config.h ${SRCX}/error.h\
 ${SRCX}/xalloc.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
        ${MAIN_CC} ${SRCX}/xalloc.c

clean : ${EXTRA_CLEAN}
        ${REMOVE} ${OFILES}
        ${REMOVE} core

clobber : clean ${EXTRA_CLOBBER}
        ${REMOVE} ${NAME}

LEXI=lexi
SID=sid
SIDOPTS=-l ossg-c -s no-lines

SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h

auto : ${SID_OUT} ${LEXI_OUT}

${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
        @${REMOVE} ${SID_OUT}
        ${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}

${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

auto_clobber :
        ${REMOVE} ${SID_OUT} ${LEXI_OUT}