Lines 8-14
SRCS= ${BASE_SRCS} sysdep.c softcore.c
Link Here
|
8 |
CLEANFILES= softcore.c testmain testmain.o |
8 |
CLEANFILES= softcore.c testmain testmain.o |
9 |
CFLAGS+= -ffreestanding -g3 |
9 |
CFLAGS+= -ffreestanding -g3 |
10 |
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" |
10 |
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" |
11 |
CFLAGS+= -mpreferred-stack-boundary=2 |
|
|
12 |
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float |
11 |
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float |
13 |
.endif |
12 |
.endif |
14 |
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" |
13 |
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" |
Lines 38-47
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
Link Here
|
38 |
# Optional OO extension softwords |
37 |
# Optional OO extension softwords |
39 |
#SOFTWORDS+= oo.fr classes.fr |
38 |
#SOFTWORDS+= oo.fr classes.fr |
40 |
|
39 |
|
41 |
.if ${MACHINE_CPUARCH} == "amd64" |
|
|
42 |
CFLAGS+= -m32 -march=i386 -I. |
43 |
.endif |
44 |
|
45 |
.if ${MACHINE_ARCH} == "powerpc64" |
40 |
.if ${MACHINE_ARCH} == "powerpc64" |
46 |
CFLAGS+= -m32 -mcpu=powerpc -I. |
41 |
CFLAGS+= -m32 -mcpu=powerpc -I. |
47 |
.endif |
42 |
.endif |
Lines 59-65
${SRCS:M*.c:R:S/$/.o/g}: machine
Link Here
|
59 |
beforedepend ${OBJS}: machine |
54 |
beforedepend ${OBJS}: machine |
60 |
|
55 |
|
61 |
machine: |
56 |
machine: |
62 |
ln -sf ${.CURDIR}/../../i386/include machine |
57 |
rm -f machine |
|
|
58 |
ln -sf ${.CURDIR}/../../${MACHINE_CPUARCH}/include machine |
63 |
|
59 |
|
64 |
CLEANFILES+= machine |
60 |
CLEANFILES+= machine |
65 |
.endif |
61 |
.endif |