Skip to content

Commit

Permalink
Fix FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
sheeple committed Mar 14, 2008
1 parent c13d759 commit dcda3d5
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ DLL_OBJS = $(PLAF_DLL_OBJS) \
EXE_OBJS = $(PLAF_EXE_OBJS)

default: misc/wordsize
make `./misc/target`
$(MAKE) `./misc/target`

help:
@echo "Run 'make' with one of the following parameters:"
@echo "Run '$(MAKE)' with one of the following parameters:"
@echo ""
@echo "freebsd-x86-32"
@echo "freebsd-x86-64"
Expand Down
2 changes: 1 addition & 1 deletion extra/io/unix/freebsd/freebsd.factor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IN: io.unix.freebsd
USING: io.unix.bsd io.backend core-foundation.fsevents ;
USING: io.unix.bsd io.backend ;

TUPLE: freebsd-io ;

Expand Down
20 changes: 20 additions & 0 deletions misc/_target
Original file line number Diff line number Diff line change
@@ -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
9 changes: 6 additions & 3 deletions misc/target
Original file line number Diff line number Diff line change
@@ -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
echo macosx-ppc
elif [ `uname -s` = Darwin ]
Expand All @@ -17,4 +20,4 @@ then
echo winnt-x86-`./misc/wordsize`
else
echo help
fi
fi

0 comments on commit dcda3d5

Please sign in to comment.