From 43f00fec19d76a6fb1bf917e1f3d51faeced4425 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Tue, 6 Nov 2007 08:17:42 +0000
Subject: [PATCH] explain that the host environment must be used to build
 gentone; Remove unset variables, they would be misleading.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/channels/Makefile b/channels/Makefile
index d5e46b225a..092dee93d6 100644
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -83,15 +83,15 @@ endif
 dist-clean::
 	rm -f h323/Makefile
 
+# gentone must be built with the HOST environment
 gentone: gentone.c
-	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
-	$(CMD_PREFIX) $(HOST_CC) $(STATIC_BUILD) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $^ $(LIBS)
-gentone: LIBS+=-lm
+	$(ECHO_PREFIX) echo "   [HOST_CC] $^ -> $@"
+	$(CMD_PREFIX) $(HOST_CC) -o $@ $^ -lm
 
-busy.h:
+busy.h: gentone
 	./gentone busy 480 620
 
-ringtone.h:
+ringtone.h: gentone
 	./gentone ringtone 440 480
 
 $(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o
-- 
GitLab