1# Mf-i3nb 2# Copyright 1984-2017 Cisco Systems, Inc. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16m = i3nb 17Cpu = I386 18 19mdinclude = -I/usr/X11R7/include -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/X11R6/include 20mdclib = /usr/lib/i18n/libiconv_std.a -lm /usr/pkg/lib/libncurses.a 21C = ${CC} ${CPPFLAGS} -Wpointer-arith -Wextra -Werror -O ${CFLAGS} 22o = o 23mdsrc = i3le.c 24mdobj = i3le.o 25 26.SUFFIXES: 27.SUFFIXES: .c .o 28 29.c.o: 30 $C -c -D${Cpu} -I${Include} ${zlibInc} ${LZ4Inc} ${mdinclude} $*.c 31 32include Mf-base 33 34${KernelO}: ${kernelobj} ${zlibDep} ${LZ4Dep} 35 ${LD} -r -X -o ${KernelO} ${kernelobj} ${zlibLib} ${LZ4Lib} 36 37${KernelLib}: ${kernelobj} 38 ${AR} ${ARFLAGS} ${KernelLib} ${kernelobj} 39 40${Scheme}: ${Kernel} ${KernelLinkDeps} ${Main} 41 $C -rdynamic -o ${Scheme} ${Main} ${Kernel} ${mdclib} ${KernelLinkLibs} ${LDFLAGS} 42 paxctl +m ${Scheme} 43 44../zlib/configure.log: 45 (cd ../zlib; CFLAGS="${CFLAGS} -m32" ./configure) 46 47../lz4/lib/liblz4.a: ${LZ4Sources} 48 (cd ../lz4/lib; CFLAGS="${CFLAGS} -m32" ${MAKE} liblz4.a) 49