summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1998-04-03 23:09:31 +0000
committerSteve Huston <shuston@riverace.com>1998-04-03 23:09:31 +0000
commita42258448c0ab68c2472573625d8ab245f72806c (patch)
tree40b685f638edd331d8881cb36402be91b3dba19b /include
parentdd08b128f053a094cc412930508cd3a778b8da5f (diff)
downloadATCD-a42258448c0ab68c2472573625d8ab245f72806c.tar.gz
Set OBJEXT and VOBJS here from SRC files set in the Makefile.
Diffstat (limited to 'include')
-rw-r--r--include/makeinclude/rules.bin.GNU6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/makeinclude/rules.bin.GNU b/include/makeinclude/rules.bin.GNU
index 1b30f417237..c91dad7a3e6 100644
--- a/include/makeinclude/rules.bin.GNU
+++ b/include/makeinclude/rules.bin.GNU
@@ -8,5 +8,11 @@
VBIN = $(BIN:%=%$(VAR))
+ifndef OBJEXT
+OBJEXT=o
+endif
+
+VOBJS = $(subst .cpp,.$(OBJEXT),$(foreach file,$(SRC),$(VDIR)$(notdir $(file))))
+
$(BIN): %: $(VDIR)%.o $(VOBJS)
$(LINK.cc) -o $@ $^ $(LDFLAGS) $(VLDLIBS) $(POSTLINK)