Pārlūkot izejas kodu

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
pull/11/head
Crom pirms 12 gadiem
vecāks
revīzija
2d28cdd3fb
1 mainītis faili ar 6 papildinājumiem un 8 dzēšanām
  1. +6
    -8
      examples/Makefile

+ 6
- 8
examples/Makefile Parādīt failu

@@ -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:


Notiek ielāde…
Atcelt
Saglabāt