Ticket #51863: patch-c-Mf-ti3osx.diff
File patch-c-Mf-ti3osx.diff, 958 bytes (added by mohd-akram (Mohamed Akram), 8 years ago) |
---|
-
c/Mf-ti3osx
old new 17 17 Cpu = I386 18 18 19 19 mdclib = -liconv -lm -lncurses 20 C = gcc ${CPPFLAGS} -m32 -Wpointer-arith -Wall -Wextra -Werror -O2 -msse2 -I/opt/X11/include/${CFLAGS}20 C = ${CC} ${CPPFLAGS} -m32 -Wpointer-arith -Wall -Wextra -Werror -O2 -msse2 ${CFLAGS} 21 21 o = o 22 22 mdsrc = i3le.c 23 23 mdobj = i3le.o … … 26 26 .SUFFIXES: .c .o 27 27 28 28 .c.o: 29 $C -c -D${Cpu} -I${Include} -I${ZlibInclude}$*.c29 $C -c -D${Cpu} -I${Include} $*.c 30 30 31 31 include Mf-base 32 32 33 ${Kernel}: ${kernelobj} ../zlib/libz.a34 ld -r -o ${Kernel} ${kernelobj} ../zlib/libz.a33 ${Kernel}: ${kernelobj} 34 $C -static -nostdlib -o ${Kernel} ${kernelobj} ${LDFLAGS} -lz -Wl,-r 35 35 36 36 ${Scheme}: ${Kernel} ${Main} 37 37 $C -o ${Scheme} ${Kernel} ${Main} ${mdclib} ${LDFLAGS} 38 39 ${ZlibInclude}/zlib.h ${ZlibInclude}/zconf.h ../zlib/libz.a:40 (cd ../zlib; CFLAGS=-m32 ./configure)41 (cd ../zlib; make)