X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2FMakefile.tpl;h=bc5edf8e83f74d278e3e996ba18b30eee022da27;hb=ca98046234be95e3dc13b822ff989f422c8b48ed;hp=c18d04f7996d51d9481723291a4ec980b3bc944e;hpb=12040654ff2053cc97de492180b582027b6de60b;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/Makefile.tpl b/Usermode/Libraries/Makefile.tpl index c18d04f7..bc5edf8e 100644 --- a/Usermode/Libraries/Makefile.tpl +++ b/Usermode/Libraries/Makefile.tpl @@ -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-%)