# AUTOMATICALLY GENERATED BY tspec 2.8
# MAKEFILE FOR posix2 API

TCC=tcc# Version of tcc
LIB=posix2.tl# TDF library
IMPL=/usr/include# API implementation directory
WORK=.# Work directory

INCL=/usr/lib/TenDRA/lib/include# API header directory
SRC=/usr/lib/TenDRA/lib/building# API auxiliary directory
PRE_FLAGS=
INCL_FLAGS=-I${IMPL} -I${INCL}/posix2.api
POST_FLAGS=
TDI=${TCC} -D__BUILDING_LIBS ${PRE_FLAGS} ${INCL_FLAGS} ${POST_FLAGS} -Fj
TDP=${TCC} -Ytdp ${INCL_FLAGS} -Fj
TNC=${TCC} -Ytnc -Fj
TLIB=${TCC} -Ymakelib

SHELL=/bin/sh

JFILES=\
 ${WORK}/posix2/fnmatch.j\
 ${WORK}/posix2/glob.j\
 ${WORK}/posix2/limits.j\
 ${WORK}/posix2/regex.j\
 ${WORK}/posix2/unistd.j\
 ${WORK}/posix2/wordexp.j

all : ${LIB}
	@echo all done

${LIB} : ${JFILES}
	@rm -f ${LIB}
	${TLIB} -o ${LIB} ${JFILES}

${WORK}/posix2/fnmatch.j : ${SRC}/posix2.api/fnmatch.c\
 ${INCL}/posix2.api/fnmatch.h ${IMPL}/fnmatch.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/fnmatch.j ${SRC}/posix2.api/fnmatch.c

${WORK}/posix2/glob.j : ${SRC}/posix2.api/glob.c\
 ${INCL}/posix2.api/glob.h ${IMPL}/glob.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/glob.j ${SRC}/posix2.api/glob.c

${WORK}/posix2/limits.j : ${SRC}/posix2.api/limits.c\
 ${INCL}/posix2.api/limits.h ${IMPL}/limits.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/limits.j ${SRC}/posix2.api/limits.c

${WORK}/posix2/regex.j : ${SRC}/posix2.api/regex.c\
 ${INCL}/posix2.api/regex.h ${IMPL}/regex.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/regex.j ${SRC}/posix2.api/regex.c

${WORK}/posix2/unistd.j : ${SRC}/posix2.api/unistd.c\
 ${INCL}/posix2.api/unistd.h ${IMPL}/unistd.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/unistd.j ${SRC}/posix2.api/unistd.c

${WORK}/posix2/wordexp.j : ${SRC}/posix2.api/wordexp.c\
 ${INCL}/posix2.api/wordexp.h ${IMPL}/wordexp.h
	@ test -d ${WORK}/posix2 || mkdir ${WORK}/posix2
	${TDI} -o ${WORK}/posix2/wordexp.j ${SRC}/posix2.api/wordexp.c

clean :
	rm -f ${JFILES}

clobber : clean
	rm -f ${LIB}
