1# 2# Copyright 1991-1998 by Open Software Foundation, Inc. 3# All Rights Reserved 4# 5# Permission to use, copy, modify, and distribute this software and 6# its documentation for any purpose and without fee is hereby granted, 7# provided that the above copyright notice appears in all copies and 8# that both the copyright notice and this permission notice appear in 9# supporting documentation. 10# 11# OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 12# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13# FOR A PARTICULAR PURPOSE. 14# 15# IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 16# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 17# LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 18# NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 19# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20# 21# 22# cmk1.1 23 24.include <src.opts.mk> 25PROG= migcom 26SCRIPTS=mig.sh 27SRCS= ident.c error.c global.c header.c \ 28 lexxer.l mig.c parser.y routine.c server.c \ 29 statement.c string.c type.c user.c utils.c 30 31 32CFLAGS+= -I${.CURDIR} -I${.CURDIR}/shims -I${.CURDIR}/../../include 33CFLAGS+= -I${.CURDIR}/../../sys 34CFLAGS+= -DYY_NO_UNPUT 35 36.if ${TARGET} == "amd64" || ${TARGET} == "i386" 37include/x86: ${.CURDIR}/Makefile 38 mkdir -p include 39 ln -sf ${.CURDIR}/../../sys/x86/include include/x86 40.endif 41 42.if ${TARGET} == "amd64" || ${TARGET} == "i386" 43ident.c: include/x86 44.else 45ident.c: 46.endif 47 echo "#include \"alloc.h\" " >${.TARGET} 48 echo "const char *MigGenerationDate = \""`date`"\";" >>${.TARGET} 49 echo "const char *MigMoreData = \""`whoami`"@"`hostname`"\";" >>${.TARGET} 50 51 52CLEANFILES+= ident.c *.o *~ *.gz cscope.* 53.if ${TARGET} == "amd64" || ${TARGET} == "i386" 54CLEANFILES+= include/x86 55.endif 56 57.include <bsd.prog.mk> 58