af03189d5c
(because there should never be an 'obj' dir/link in .../usr.bin/tn3270, but good style, and robust if there happens to be one.)
44 lines
998 B
Makefile
44 lines
998 B
Makefile
# $Id: Makefile,v 1.11 1995/01/02 22:33:21 cgd Exp $
|
|
|
|
.include "../../Makefile.inc"
|
|
|
|
CFLAGS += -I${.CURDIR} -I.
|
|
|
|
MAN = mset.1 map3270.5
|
|
|
|
SRCS += astosc.c map3270.c mset.c
|
|
|
|
# this and the dependency hacks below to make 'depend' target
|
|
# work right...
|
|
|
|
DEPSRCS += astosc.OUT map3270.c mset.c
|
|
|
|
PROG = mset
|
|
|
|
MKASTOSC!=cd $(.CURDIR)/../tools/mkastosc; \
|
|
printf "xxx:\n\techo \$${.OBJDIR}/mkastosc\n" | ${MAKE} -r -s -f - xxx
|
|
|
|
astosc.o: astosc.OUT
|
|
CLEANFILES += astosc.OUT astosc.out
|
|
astosc.OUT: ${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/function.h \
|
|
${.CURDIR}/../ctlr/${KBD} ${MKASTOSC}
|
|
${MKASTOSC} \
|
|
${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/function.h \
|
|
< ${.CURDIR}/../ctlr/${KBD} > ${.TARGET}
|
|
/bin/rm -f astosc.out
|
|
ln -s astosc.OUT astosc.out
|
|
|
|
# astosc.out
|
|
|
|
${MKASTOSC}:
|
|
cd ${.CURDIR}/../tools/mkastosc; ${MAKE}
|
|
|
|
|
|
depend: .depend
|
|
.depend: ${DEPSRCS}
|
|
mkdep ${MKDEP} ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.PATH: ${.CURDIR}/../api ${.CURDIR}/../ascii
|