chiark
/
gitweb
/
~ianmdlvl
/
wiringPi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added in the PiGlow devLib extension driver.
[wiringPi.git]
/
examples
/
PiGlow
/
Makefile
diff --git
a/examples/PiGlow/Makefile
b/examples/PiGlow/Makefile
index a09895b97d3bae5a3bb4e9029689ac3292298e4f..8d31141a08944cea35c14e1614e7c1edb416fd56 100644
(file)
--- a/
examples/PiGlow/Makefile
+++ b/
examples/PiGlow/Makefile
@@
-35,7
+35,7
@@
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm
# Should not alter anything below this line
###############################################################################
# Should not alter anything below this line
###############################################################################
-SRC = piGlow0.c piGlow1.c
+SRC = piGlow0.c piGlow1.c
piglow.c
OBJ = $(SRC:.c=.o)
OBJ = $(SRC:.c=.o)
@@
-51,6
+51,10
@@
piGlow1: piGlow1.o
@echo [link]
@$(CC) -o $@ piGlow1.o $(LDFLAGS) $(LDLIBS)
@echo [link]
@$(CC) -o $@ piGlow1.o $(LDFLAGS) $(LDLIBS)
+piglow: piglow.o
+ @echo [link]
+ @$(CC) -o $@ piglow.o $(LDFLAGS) $(LDLIBS)
+
.c.o:
@echo [CC] $<
@$(CC) -c $(CFLAGS) $< -o $@
.c.o:
@echo [CC] $<
@$(CC) -c $(CFLAGS) $< -o $@
@@
-63,6
+67,12
@@
tags: $(SRC)
@echo [ctags]
@ctags $(SRC)
@echo [ctags]
@ctags $(SRC)
+install: piglow
+ @echo Installing piglow into /usr/local/bin
+ @cp -a piglow /usr/local/bin/piglow
+ @chmod 755 /usr/local/bin/piglow
+ @echo Done. Remember to load the I2C drivers!
+
depend:
makedepend -Y $(SRC)
depend:
makedepend -Y $(SRC)