Externals/cross-compiler - Patching to get things compiling
[tpg/acess2.git] / Usermode / Libraries / Makefile.tpl
index c18d04f..bc5edf8 100644 (file)
@@ -17,7 +17,17 @@ DEPFILES := $(addsuffix .dep,$(OBJ))
 
 .PHONY: all clean install postbuild
 
-all: $(_BIN) $(_XBIN)
+all: _libs $(_BIN) $(_XBIN)
+
+.PHONY: _libs
+
+
+HEADERS := $(patsubst include_exp/%,../../include/%,$(shell find include_exp/ -name \*.h))
+_libs: $(HEADERS)
+
+../../include/%: include_exp/%
+       @mkdir -p $(dir $@)
+       @ln -s $(shell pwd)/$< $@
 
 .PHONY: utest utest-build utest-run $(UTESTS:%=runtest-%)
 

UCC git Repository :: git.ucc.asn.au