Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
12 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # Makefile:
  3. # wiringPi - Wiring Compatable library for the Raspberry Pi
  4. # https://projects.drogon.net/wiring-pi
  5. #
  6. # Copyright (c) 2012 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 = -O2
  26. CC = gcc
  27. INCLUDE = -I/usr/local/include
  28. CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
  29. LDFLAGS = -L/usr/local/lib
  30. LIBS = -lwiringPi -lwiringPiDev -lpthread -lm
  31. # May not need to alter anything below this line
  32. ###############################################################################
  33. SRC = gpio.c extensions.c
  34. OBJ = $(SRC:.c=.o)
  35. all: gpio
  36. gpio: $(OBJ)
  37. @echo [Link]
  38. @$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
  39. .c.o:
  40. @echo [Compile] $<
  41. @$(CC) -c $(CFLAGS) $< -o $@
  42. .PHONEY: clean
  43. clean:
  44. @echo "[Clean]"
  45. @rm -f $(OBJ) gpio *~ core tags *.bak
  46. .PHONEY: tags
  47. tags: $(SRC)
  48. @echo [ctags]
  49. @ctags $(SRC)
  50. .PHONEY: install
  51. install:
  52. @echo "[Install]"
  53. @cp gpio /usr/local/bin
  54. @chown root.root /usr/local/bin/gpio
  55. @chmod 4755 /usr/local/bin/gpio
  56. @mkdir -p /usr/local/man/man1
  57. @cp gpio.1 /usr/local/man/man1
  58. .PHONEY: uninstall
  59. uninstall:
  60. @echo "[UnInstall]"
  61. @rm -f /usr/local/bin/gpio
  62. @rm -f /usr/local/man/man1/gpio.1
  63. .PHONEY: depend
  64. depend:
  65. makedepend -Y $(SRC)
  66. # DO NOT DELETE
  67. gpio.o: extensions.h
  68. extensions.o: extensions.h