Fix FreeBSD
parent
c13d759ec6
commit
dcda3d5bcf
4
Makefile
4
Makefile
|
@ -46,10 +46,10 @@ DLL_OBJS = $(PLAF_DLL_OBJS) \
|
||||||
EXE_OBJS = $(PLAF_EXE_OBJS)
|
EXE_OBJS = $(PLAF_EXE_OBJS)
|
||||||
|
|
||||||
default: misc/wordsize
|
default: misc/wordsize
|
||||||
make `./misc/target`
|
$(MAKE) `./misc/target`
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Run 'make' with one of the following parameters:"
|
@echo "Run '$(MAKE)' with one of the following parameters:"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "freebsd-x86-32"
|
@echo "freebsd-x86-32"
|
||||||
@echo "freebsd-x86-64"
|
@echo "freebsd-x86-64"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
IN: io.unix.freebsd
|
IN: io.unix.freebsd
|
||||||
USING: io.unix.bsd io.backend core-foundation.fsevents ;
|
USING: io.unix.bsd io.backend ;
|
||||||
|
|
||||||
TUPLE: freebsd-io ;
|
TUPLE: freebsd-io ;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ \( `uname -s` = Darwin \) -a \( `uname -p` = powerpc \) ]
|
||||||
|
then
|
||||||
|
echo macosx-ppc
|
||||||
|
elif [ `uname -s` = Darwin ]
|
||||||
|
then
|
||||||
|
echo macosx-x86-`./misc/wordsize`
|
||||||
|
elif [ \( `uname -s` = Linux \) -a \( `uname -m` = i686 \) ]
|
||||||
|
then
|
||||||
|
echo linux-x86-32
|
||||||
|
elif [ \( `uname -s` = Linux \) -a \( `uname -m` = x86_64 \) ]
|
||||||
|
then
|
||||||
|
echo linux-x86-64
|
||||||
|
elif [ \( `uname -o` = Cygwin \) -a \( `uname -m` = i686 \) ]
|
||||||
|
then
|
||||||
|
echo winnt-x86-`./misc/wordsize`
|
||||||
|
else
|
||||||
|
echo help
|
||||||
|
fi
|
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if [ \( `uname -s` = Darwin \) -a \( `uname -p` = powerpc \) ]
|
if [ \( `uname -s ` = FreeBSD \) -a \( `uname -p` = i386 \) ]
|
||||||
|
then
|
||||||
|
echo freebsd-x86-32
|
||||||
|
elif [ \( `uname -s` = Darwin \) -a \( `uname -p` = powerpc \) ]
|
||||||
then
|
then
|
||||||
echo macosx-ppc
|
echo macosx-ppc
|
||||||
elif [ `uname -s` = Darwin ]
|
elif [ `uname -s` = Darwin ]
|
||||||
|
@ -17,4 +20,4 @@ then
|
||||||
echo winnt-x86-`./misc/wordsize`
|
echo winnt-x86-`./misc/wordsize`
|
||||||
else
|
else
|
||||||
echo help
|
echo help
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue