summaryrefslogtreecommitdiffstats
path: root/patches/nanocom-1.0/0001-Nanocom-fix-its-buildsystem.patch
blob: 2e50eff3f32ca3e4ec475613a124825b4d23cc82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Juergen Beisert <jbe@pengutronix.de>
Date: Mon, 2 Jul 2012 10:36:35 +0200
Subject: [PATCH] Nanocom: fix its buildsystem

This existing Makefile tries to be smarter than Make is. And it fails badly.
 - it is not able to compile twice
 - it does not honor external flags, nor does it list the binaries sources for
   dependency detection

Signed-off.by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index df28d22..1ef2aed 100644
--- a/Makefile
+++ b/Makefile
@@ -12,13 +12,11 @@
 #** GNU General Public License for more details at www.gnu.org
 #****************************************************************************/
 
-CC=gcc
+all: nanocom
 
-all: clean nanocom
+nanocom: mux.c menu.c nanocom.c
 
-nanocom: 
-	$(CC) mux.c nanocom.c menu.c -o nanocom
-    
 clean:
 	rm -rf *.o nanocom
-    
\ No newline at end of file
+
+.PHONY: all clean