CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
LDFLAGS = -L/usr/local/lib
-LDLIBS = -lwiringPi
+LDLIBS = -lwiringPi -lpthread -lm
# Should not alter anything below this line
###############################################################################
BINS = $(SRC:.c=)
+# Note:
+# Please don't waste your time by emailling me or doing a
+# pull request with changes to make all these targets. It
+# is intentional that I do it this way as it now takes too
+# long to compile them all and most people will not run
+# them anyway... -GH-
+
all:
@cat README.TXT
@echo " $(BINS)" | fmt
piface: piface.o
@echo [link]
- @$(CC) -o $@ piface.o $(LDFLAGS) $(LDLIBS) -lpthread
+ @$(CC) -o $@ piface.o $(LDFLAGS) $(LDLIBS)
gertboard: gertboard.o
@echo [link]
- @$(CC) -o $@ gertboard.o $(LDFLAGS) $(LDLIBS) -lm
+ @$(CC) -o $@ gertboard.o $(LDFLAGS) $(LDLIBS)
nes: nes.o
@echo [link]
- @$(CC) -o $@ nes.o $(LDFLAGS) $(LDLIBS) -lm
+ @$(CC) -o $@ nes.o $(LDFLAGS) $(LDLIBS)
pwm: pwm.o
@echo [link]
- @$(CC) -o $@ pwm.o $(LDFLAGS) $(LDLIBS) -lm -lpthread
+ @$(CC) -o $@ pwm.o $(LDFLAGS) $(LDLIBS)
delayTest: delayTest.o
@echo [link]