Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

80 řádky
2.1 KiB

  1. #
  2. # Makefile:
  3. # wiringPi - Wiring Compatable library for the Raspberry Pi
  4. # https://projects.drogon.net/wiring-pi
  5. #
  6. # Copyright (c) 2012-2013 Gordon Henderson
  7. #################################################################################
  8. # This file is part of wiringPi:
  9. # Wiring Compatable library for the Raspberry Pi
  10. #
  11. # wiringPi is free software: you can redistribute it and/or modify
  12. # it under the terms of the GNU Lesser General Public License as published by
  13. # the Free Software Foundation, either version 3 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # wiringPi is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU Lesser General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU Lesser General Public License
  22. # along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  23. #################################################################################
  24. #DEBUG = -g -O0
  25. DEBUG = -O3
  26. CC = gcc
  27. INCLUDE = -I/usr/local/include
  28. CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
  29. LDFLAGS = -L/usr/local/lib
  30. LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm
  31. # Should not alter anything below this line
  32. ###############################################################################
  33. SRC = piGlow0.c piGlow1.c piglow.c
  34. OBJ = $(SRC:.c=.o)
  35. BINS = $(SRC:.c=)
  36. all: $(BINS)
  37. piGlow0: piGlow0.o
  38. @echo [link]
  39. @$(CC) -o $@ piGlow0.o $(LDFLAGS) $(LDLIBS)
  40. piGlow1: piGlow1.o
  41. @echo [link]
  42. @$(CC) -o $@ piGlow1.o $(LDFLAGS) $(LDLIBS)
  43. piglow: piglow.o
  44. @echo [link]
  45. @$(CC) -o $@ piglow.o $(LDFLAGS) $(LDLIBS)
  46. .c.o:
  47. @echo [CC] $<
  48. @$(CC) -c $(CFLAGS) $< -o $@
  49. clean:
  50. @echo "[Clean]"
  51. @rm -f $(OBJ) *~ core tags $(BINS)
  52. tags: $(SRC)
  53. @echo [ctags]
  54. @ctags $(SRC)
  55. install: piglow
  56. @echo Installing piglow into /usr/local/bin
  57. @cp -a piglow /usr/local/bin/piglow
  58. @chmod 755 /usr/local/bin/piglow
  59. @echo Done. Remember to load the I2C drivers!
  60. depend:
  61. makedepend -Y $(SRC)
  62. # DO NOT DELETE