mirror of
https://github.com/yarrick/iodine.git
synced 2025-12-06 12:21:46 +00:00
Make crosscompiling easier
This commit is contained in:
@@ -5,12 +5,12 @@ CLIENT = ../bin/iodine
|
||||
SERVEROBJS = iodined.o user.o fw_query.o
|
||||
SERVER = ../bin/iodined
|
||||
|
||||
OS = `uname | tr "a-z" "A-Z"`
|
||||
OS = `echo $(TARGETOS) | tr "a-z" "A-Z"`
|
||||
ARCH = `uname -m`
|
||||
|
||||
LIBPATH = -L.
|
||||
LDFLAGS = -lz `sh osflags link` $(LIBPATH)
|
||||
CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags cflags`
|
||||
LDFLAGS = -lz `sh osflags $(TARGETOS) link` $(LIBPATH)
|
||||
CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags`
|
||||
|
||||
all: stateos $(CLIENT) $(SERVER)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
case $2 in
|
||||
link)
|
||||
|
||||
case `uname` in
|
||||
case $1 in
|
||||
SunOS | solaris)
|
||||
echo '-lsocket -lnsl';
|
||||
;;
|
||||
@@ -19,7 +19,7 @@ link)
|
||||
esac
|
||||
;;
|
||||
cflags)
|
||||
case `uname` in
|
||||
case $1 in
|
||||
BeOS)
|
||||
echo '-Dsocklen_t=int';
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user