X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2FMakefile.tpl;h=bc5edf8e83f74d278e3e996ba18b30eee022da27;hb=bdefac5f54668fcccff11a69619ff31b25595eeb;hp=c18d04f7996d51d9481723291a4ec980b3bc944e;hpb=5fc2955d2f3e3ffcc10ce713317771b72842d910;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-%)