diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-14T00·47+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-14T00·47+0100 |
commit | 14955c297de82e964ea5bf44f8aaf543d4cae33a (patch) | |
tree | 264740d66d805dbbb82c03146830a2a022569d88 /mk/programs.mk | |
parent | 68b47178730a95871eba4aa4df19a845c8e5a947 (diff) | |
parent | 36c67860363c93eb00cf5b8e2ad34f6f775e6901 (diff) |
Merge commit '36c67860363c93eb00cf5b8e2ad34f6f775e6901'
Diffstat (limited to 'mk/programs.mk')
-rw-r--r-- | mk/programs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/programs.mk b/mk/programs.mk index 72afdf95251b..3ac64494e3a5 100644 --- a/mk/programs.mk +++ b/mk/programs.mk @@ -23,9 +23,9 @@ programs-list := # - $(1)_INSTALL_DIR: the directory where the program will be # installed; defaults to $(bindir). define build-program - _d := $$($(1)_DIR) + _d := $(buildprefix)$$($(1)_DIR) _srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src))) - $(1)_OBJS := $$(addsuffix .o, $$(basename $$(_srcs))) + $(1)_OBJS := $$(addprefix $(buildprefix), $$(addsuffix .o, $$(basename $$(_srcs)))) _libs := $$(foreach lib, $$($(1)_LIBS), $$($$(lib)_PATH)) $(1)_PATH := $$(_d)/$(1) |