Rev 69 | Blame | Compare with Previous | Last modification | View Log | RSS feed
# $Id$
# Standard directories and files
#.include "../Makefile.inc"
include ../../../defs.mk
SRCC=./obj_c
SRCTOK=${.CURDIR}/obj_tok
SRCX=${.CURDIR}/../shared
# Standard variables
WARNS?= 2
TCCOPTS= -Yposix2 -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= make_err
OBJS= error.o errors.o lex.o main.o process.o syntax.o xalloc.o
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
.c.o:
$(CC) -I../shared -I$(SRCC) -c $(CFLAGS) -o $@ $<
error.o: ../shared/error.c
$(CC) -I../shared -c $(CFLAGS) -o $@ ../shared/error.c
xalloc.o: ../shared/xalloc.c
$(CC) -I../shared -c $(CFLAGS) -o $@ ../shared/xalloc.c
errors.o: obj_c/errors.c
$(CC) -I./ -I./obj_c -I../shared -c $(CFLAGS) -o $@ obj_c/errors.c
.PATH: ${SRCC} ${SRCTOK} ${SRCX}
install: $(PROG)
mkdir -p $(INSTALL_BINDIR)
install $(PROG) $(INSTALL_BINDIR)/$(PROG)
clean:
rm -f $(OBJS)
rm -f $(PROG)
#.PATH: ${SRCC} ${SRCTOK} ${SRCX}
SIDOPTS=-l ansi-c -s no-lines
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
#C_OUT=${SRCC}/errors.h ${SRCC}/type_ops.h
#TOK_OUT=${SRCTOK}/errors.h ${SRCTOK}/type_ops.h
#DISK_OUT=${SRC}/read_def.h ${SRC}/write_def.h ${SRC}/print_def.h
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
# @${REMOVE} ${SID_OUT}
# ${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
#
#${SRCC}/errors.h : ${SRC}/errors.alg
# @${REMOVE} ${SRCC}/*.h
# ${CALCULUS} -a -x ${SRC}/errors.alg ${SRCC}
#
#${SRCTOK}/errors.h : ${SRC}/errors.alg
# @${REMOVE} ${SRCTOK}/*.h
# ${CALCULUS} -a -x -t ${SRC}/errors.alg ${SRCTOK}
#
#${SRC}/read_def.h : ${SRC}/errors.alg ${SRC}/disk.alg
# @${REMOVE} ${SRC}/read_def.h ${SRC}/write_def.h
# ${CALCULUS} -a -x -d ${SRC}/errors.alg ${SRC}/disk.alg ${SRC}
#CALCULUS=errors
#LEXI=lexi
#SID=sid
#SIDOPTS=-l ansi-c -s no-lines
#
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
#C_OUT=${SRC2}/errors.h
#TOK_OUT=${SRC2A}/errors.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}/errors.h : ${SRC}/errors.alg
# @${REMOVE} ${SRC2}/*.h
# ${CALCULUS} -a -x ${SRC}/errors.alg ${SRC2}
#
#${SRC2A}/errors.h : ${SRC}/errors.alg
# @${REMOVE} ${SRC2A}/*.h
# ${CALCULUS} -a -x -t ${SRC}/errors.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
#
#auto_clobber :
# ${REMOVE} ${SID_OUT} ${LEXI_OUT}
# ${REMOVE} ${SRC2}/*.h
# ${REMOVE} ${SRC2A}/*.h