summaryrefslogtreecommitdiffstats
path: root/automake/leaf.am
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-29 14:39:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-29 14:39:50 +0000
commita34b2458a4c6fade5bca0445e224ddea68ebb4bf (patch)
treea3f6ecbbf8376c5f0f805ddca8a942a812b28823 /automake/leaf.am
parent2001-10-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-a34b2458a4c6fade5bca0445e224ddea68ebb4bf.tar.bz2
2001-10-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Adopt more automake rules: * automake/compile.am: Add LINK, CXXLINK, AS, ASCOMPILE; Remove ARFLAGS, LINK.c, COMPILE.S, LINK.cc; Add CPU_CFLAGS to CXXFLAGS, CFLAGS, ASFLAGS; * automake/leaf.am: Add CXXLINK_APP, LINK_APP, make-exe, apply CXXLINK_APP in make-cxx-exe. * automake/lib.am: Add ARFLAGS.
Diffstat (limited to '')
-rw-r--r--automake/leaf.am13
1 files changed, 10 insertions, 3 deletions
diff --git a/automake/leaf.am b/automake/leaf.am
index b36ed33fbb..f6a9c5ce15 100644
--- a/automake/leaf.am
+++ b/automake/leaf.am
@@ -1,9 +1,16 @@
include $(RTEMS_ROOT)/make/leaf.cfg
+CXXLINK_APP = $(CXXLINK) $(LDLIBS) $(LINK_OBJS) $(LINK_LIBS)
ifndef make-cxx-exe
define make-cxx-exe
- $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
- $(LDLIBS) -o $@ \
- $(LINK_OBJS) $(LINK_LIBS)
+ $(CXXLINK_APP)
endef
@ENDIF@
+
+LINK_APP = $(LINK) $(LDLIBS) $(LINK_OBJS) $(LINK_LIBS)
+ifndef make-exe
+define make-exe
+ $(LINK_APP)
+endef
+@ENDIF@
+