Mercurial > pub > dyncall > dyncall
comparison configure @ 30:c16bc7736bb4
- added configure (only sh-version) option to display list of settable targets
author | cslag |
---|---|
date | Sat, 21 Nov 2015 16:16:26 +0100 |
parents | 52deacbdd2b1 |
children | e2519fb5f88d |
comparison
equal
deleted
inserted
replaced
29:99eaf237568e | 30:c16bc7736bb4 |
---|---|
21 cat <<EOF | 21 cat <<EOF |
22 usage: $0 --<option>=<value> <var>=<value> .. | 22 usage: $0 --<option>=<value> <var>=<value> .. |
23 | 23 |
24 --prefix=<dir> | 24 --prefix=<dir> |
25 --target=<platform> uname/special targets: MacOSX,iOS,iPhoneSimulator | 25 --target=<platform> uname/special targets: MacOSX,iOS,iPhoneSimulator |
26 use "?" to get a list of explicitly specifiable | |
27 targets | |
26 --sdk=<version> Mac OS X/iOS SDK version (e.g. '6.1' or '10.9.3') | 28 --sdk=<version> Mac OS X/iOS SDK version (e.g. '6.1' or '10.9.3') |
27 Tested iOS SDK versions: 4.3, 6.1, 8.1 | 29 Tested iOS SDK versions: 4.3, 6.1, 8.1 |
28 --sdkroot=<dir> | 30 --sdkroot=<dir> |
29 | 31 |
30 Useful variables CC, CXX, CFLAGS, CXXFLAGS, etc.. | 32 Useful variables CC, CXX, CFLAGS, CXXFLAGS, etc.. |
180 # Pulling in dyncall libs below is a hack, for some reason psp-ld is super-picky about order. | 182 # Pulling in dyncall libs below is a hack, for some reason psp-ld is super-picky about order. |
181 # Use your C lib of choice, from the PSPSDK, or... | 183 # Use your C lib of choice, from the PSPSDK, or... |
182 #printf "LDLIBS=-L${SDKROOT}/lib/ -L`dirname ${FULL}`/dyncall -L`dirname ${FULL}`/dyncallback -ldyncall_s -ldyncallback_s -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lstdc++ -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser \n" >>$C | 184 #printf "LDLIBS=-L${SDKROOT}/lib/ -L`dirname ${FULL}`/dyncall -L`dirname ${FULL}`/dyncallback -ldyncall_s -ldyncallback_s -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lstdc++ -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser \n" >>$C |
183 # ... newlib. | 185 # ... newlib. |
184 printf "LDLIBS=-L${SDKROOT}/lib/ -L`dirname ${FULL}`/dyncall -L`dirname ${FULL}`/dyncallback -ldyncall_s -ldyncallback_s -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lstdc++ -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser \n" >>$C | 186 printf "LDLIBS=-L${SDKROOT}/lib/ -L`dirname ${FULL}`/dyncall -L`dirname ${FULL}`/dyncallback -ldyncall_s -ldyncallback_s -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lstdc++ -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser \n" >>$C |
187 ;; | |
188 ?) | |
189 cat $0 | awk '/^esac$/{b=0}/^ [A-Za-z0-9|]+\)/{if(b==1) print substr($1,1,length($1)-1)}BEGIN{b=0}/^case.*TARGET.*uname.*in$/{b=1}' | tr '|' '\n' | |
190 exit 0 | |
185 ;; | 191 ;; |
186 esac | 192 esac |
187 | 193 |
188 BLDTOP="$PWD" | 194 BLDTOP="$PWD" |
189 SRCTOP=`dirname ${FULL}` | 195 SRCTOP=`dirname ${FULL}` |