summaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-21 22:37:06 -0400
committermidipix <writeonce@midipix.org>2016-09-21 22:37:06 -0400
commit613e0100bd89b895971bfbad4807a46eabe2fb6c (patch)
tree3bd56273805d2fd68656901a3c893523af7db0c2 /Makefile.in
parentc67e64bc2f3e482943ef699d1010499fa8ac642b (diff)
downloadslibtool-613e0100bd89b895971bfbad4807a46eabe2fb6c.tar.bz2
slibtool-613e0100bd89b895971bfbad4807a46eabe2fb6c.tar.xz
build system: support setting an external folder as the source directory.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 8d3e543..1bbc47f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,6 +1,7 @@
PACKAGE = @package@
NICKNAME = @nickname@
PROJECT_DIR = @project_dir@
+SOURCE_DIR = @source_dir@
GIT_REFERENCE_INDEX = @git_reference_index@
CUSTOM_INSTALL_HEADERS = @custom_install_headers@
AVOID_VERSION = @avoid_version@
@@ -101,10 +102,10 @@ include $(PROJECT_DIR)/project/overrides.mk
$(APP_SRCS:%.c=%.o): CFLAGS_STATIC = $(CFLAGS_APP)
-src/%.lo: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
+src/%.lo: $(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
$(CC) -c -o $@ $< $(CFLAGS_SHARED)
-src/%.o: $(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
+src/%.o: $(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
$(CC) -c -o $@ $< $(CFLAGS_STATIC)
lib/%$(OS_LIB_SUFFIX)$(VER_XYZ):
@@ -220,7 +221,7 @@ host.tag: Makefile
version.tag: $(GIT_REFERENCE_INDEX)
$(PROJECT_DIR)/sysinfo/version.sh \
- -s $(PROJECT_DIR) \
+ -s $(SOURCE_DIR) \
-o build/$(PACKAGE)_version.h \
-p $(PACKAGE)
touch version.tag