From 2d28cdd3fb3e64010e486dd5e6806aaa8e388aee Mon Sep 17 00:00:00 2001 From: Crom Date: Thu, 17 Jan 2013 19:30:21 +0100 Subject: [PATCH] Fixed example makefile build errors & added build all target by default - Added -lpthread for targets "wfi", "okled", "tone" and "servo" - Modified all target to build all examples instead of showing readme --- examples/Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 738d36c..3df4733 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -44,10 +44,8 @@ OBJ = $(SRC:.c=.o) BINS = $(SRC:.c=) -all: - @cat README.TXT - @echo " $(BINS)" | fmt - @echo "" +all: test1 test2 speed lcd wfi piface gertboard nes pwm delayTest serialRead okLed tone servo + test1: test1.o @echo [link] @@ -67,7 +65,7 @@ lcd: lcd.o wfi: wfi.o @echo [link] - @$(CC) -o $@ wfi.o $(LDFLAGS) $(LDLIBS) + @$(CC) -o $@ wfi.o $(LDFLAGS) $(LDLIBS) -lpthread piface: piface.o @echo [link] @@ -95,15 +93,15 @@ serialRead: serialRead.o okLed: okLed.o @echo [link] - @$(CC) -o $@ okLed.o $(LDFLAGS) $(LDLIBS) + @$(CC) -o $@ okLed.o $(LDFLAGS) $(LDLIBS) -lpthread tone: tone.o @echo [link] - @$(CC) -o $@ tone.o $(LDFLAGS) $(LDLIBS) + @$(CC) -o $@ tone.o $(LDFLAGS) $(LDLIBS) -lpthread servo: servo.o @echo [link] - @$(CC) -o $@ servo.o $(LDFLAGS) $(LDLIBS) + @$(CC) -o $@ servo.o $(LDFLAGS) $(LDLIBS) -lpthread .c.o: