Subversion Repositories tendra.SVN

Rev

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


include ../../../defs.mk

SRC1=./errors

# Standard variables

WARNS?=         2

TCCOPTS=        -Yansi -Xs
CCOPTS=         ${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${OBJ_SDIR}
LIBS=

# Dependencies and construction rules

PROG=           tld

OBJS=           gen-errors.o\
                arg-data.o arg-parse.o bistream.o bostream.o builder.o\
                capsule.o contents.o cstring-list.o cstring.o dalloc.o debug.o\
                dstring.o error-file.o error.o exception.o extract.o\
                file-name.o istream.o library.o linker.o main.o\
                map-entry.o map-table.o name-entry.o name-key.o name-table.o\
                nstring-list.o ostream.o rename-file.o shape-entry.o\
                shape-table.o syntax.o tdf-read.o tdf-write.o tdf.o\
                unit-entry.o unit-table.o

.c.o:
        $(CC) -c $(CFLAGS) -o $@ $<

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

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

install:
        mkdir -p $(INSTALL_BINDIR)
        install $(PROG) $(INSTALL_BINDIR)/$(PROG)

depend:
        mkdep $(CFLAGS) *.c




ERR_OUT=gen-errors.c gen-errors.h

EFILES=${SRC1}/arg-data.e ${SRC1}/arg-parse.e ${SRC1}/builder.e\
 ${SRC1}/capsule.e ${SRC1}/contents.e ${SRC1}/error-file.e\
 ${SRC1}/extract.e ${SRC1}/for-osif.e ${SRC1}/library.e ${SRC1}/linker.e\
 ${SRC1}/main.e ${SRC1}/name-entry.e ${SRC1}/rename-file.e\
 ${SRC1}/shape-entry.e ${SRC1}/tdf-read.e

#gen-errors.c : ${BUILD_ERRORS} ${EFILES}
#       ${REMOVE} ${ERR_OUT};\
#       ${BUILD_ERRORS} -o gen-errors ${EFILES}