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+= -nostdinc -I./include -I${.CURDIR} -I${.CURDIR}/shims -I./include 33CFLAGS+= -I${.CURDIR}/../../include -I${.CURDIR}/../../sys 34CFLAGS+= -I${.CURDIR} -DYY_NO_UNPUT -DYY_NO_INPUT -I${.CURDIR}/../../apsl/include 35 36 37.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 38.PATH: i386 39CFLAGS+= -I${.CURDIR}/i386 40include/x86: ${.CURDIR}/Makefile 41 mkdir -p include 42 ln -sf ${.CURDIR}/../../sys/x86/include include/x86 43.endif 44 45include/machine: ${.CURDIR}/Makefile 46 mkdir -p include 47 ln -sf ${.CURDIR}/../../sys/${MACHINE_CPUARCH}/include include/machine 48 49.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 50ident.c: include/machine include/x86 51.else 52ident.c: include/machine 53.endif 54 echo "#include \"alloc.h\" " >${.TARGET} 55 echo "const char *MigGenerationDate = \""`date`"\";" >>${.TARGET} 56 echo "const char *MigMoreData = \""`whoami`"@"`hostname`"\";" >>${.TARGET} 57 58CLEANFILES+= ident.c *.o *~ *.gz cscope.* include/machine include/x86 59 60.include <bsd.prog.mk> 61