Subversion Repositories tendra.SVN

Rev

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


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

SRC1=./errors

WARNS?=         2

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

# Dependencies and construction rules


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

OBJDIR=./o$(STAGE)
PROG=tld


include ../../prog.mk





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

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






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}