Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
pirms 12 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. DESTDIR=/usr
  25. PREFIX=/local
  26. #DEBUG = -g -O0
  27. DEBUG = -O2
  28. CC = gcc
  29. INCLUDE = -I$(DESTDIR)$(PREFIX)/usr/local/include
  30. CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
  31. LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib
  32. LIBS = -lwiringPi -lwiringPiDev -lpthread -lm
  33. # May not need to alter anything below this line
  34. ###############################################################################
  35. SRC = gpio.c extensions.c readall.c
  36. OBJ = $(SRC:.c=.o)
  37. all: gpio
  38. gpio: $(OBJ)
  39. @echo [Link]
  40. @$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
  41. .c.o:
  42. @echo [Compile] $<
  43. @$(CC) -c $(CFLAGS) $< -o $@
  44. .PHONEY: clean
  45. clean:
  46. @echo "[Clean]"
  47. @rm -f $(OBJ) gpio *~ core tags *.bak
  48. .PHONEY: tags
  49. tags: $(SRC)
  50. @echo [ctags]
  51. @ctags $(SRC)
  52. .PHONEY: install
  53. install:
  54. @echo "[Install]"
  55. @cp gpio $(DESTDIR)$(PREFIX)/bin
  56. @chown root.root $(DESTDIR)$(PREFIX)/bin/gpio
  57. @chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio
  58. @mkdir -p $(DESTDIR)$(PREFIX)/man/man1
  59. @cp gpio.1 $(DESTDIR)$(PREFIX)/man/man1
  60. .PHONEY: uninstall
  61. uninstall:
  62. @echo "[UnInstall]"
  63. @rm -f $(DESTDIR)$(PREFIX)/bin/gpio
  64. @rm -f $(DESTDIR)$(PREFIX)/man/man1/gpio.1
  65. .PHONEY: depend
  66. depend:
  67. makedepend -Y $(SRC)
  68. # DO NOT DELETE
  69. gpio.o: extensions.h
  70. extensions.o: extensions.h