-bin-$(platform)/org/xwt/builtin.o: bin/org/xwt/builtin.xwar
- echo "wrapping .xwar -> .o"
- $(gcj) --resource org/xwt/builtin.xwar -c $< -o $@
-
-
+upstream:
+ cvs -d :pserver:cvs@cvs.xwt.org:/ export -r HEAD upstream
+
+upstream/Carbon/include/Carbon: upstream
+ # A disgusting hack to create symlinks to the OS X Framework headers, since the
+ # standard GCC doesn't know how to search Frameworks for header files.
+ outdir="upstream/Carbon/include"; \
+ mkdir -p $$outdir; \
+ librarydir="/System/Library"; \
+ frameworksubdir="Frameworks"; \
+ cd $$outdir; \
+ function CreateHeaderDirectories() \
+ { \
+ for framework in `ls -d $$1/*.framework`; do \
+ name=`echo $$framework | sed 's/.*\/\([^/]*\)\.framework/\1/'`; \
+ if [[ $$name != "" && ! -e $$name && -e $$framework/Headers ]]; then \
+ ln -s $$framework/Headers $$name; \
+ if [[ -e $$framework/$$frameworksubdir ]]; then \
+ CreateHeaderDirectories $$framework/$$frameworksubdir; \
+ fi; \
+ fi; \
+ done; \
+ }; \
+ CreateHeaderDirectories $$librarydir/$$frameworksubdir;