Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

86 wiersze
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 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 = blink.c buttons.c reaction.c ladder.c metro.c motor.c
  34. OBJ = $(SRC:.c=.o)
  35. BINS = $(SRC:.c=)
  36. all: $(BINS)
  37. blink: blink.o
  38. @echo [link]
  39. @$(CC) -o $@ blink.o $(LDFLAGS) $(LDLIBS)
  40. buttons: buttons.o
  41. @echo [link]
  42. @$(CC) -o $@ buttons.o $(LDFLAGS) $(LDLIBS)
  43. reaction: reaction.o
  44. @echo [link]
  45. @$(CC) -o $@ reaction.o $(LDFLAGS) $(LDLIBS)
  46. ladder: ladder.o
  47. @echo [link]
  48. @$(CC) -o $@ ladder.o $(LDFLAGS) $(LDLIBS)
  49. metro: metro.o
  50. @echo [link]
  51. @$(CC) -o $@ metro.o $(LDFLAGS) $(LDLIBS)
  52. motor: motor.o
  53. @echo [link]
  54. @$(CC) -o $@ motor.o $(LDFLAGS) $(LDLIBS)
  55. .c.o:
  56. @echo [CC] $<
  57. @$(CC) -c $(CFLAGS) $< -o $@
  58. clean:
  59. @echo "[Clean]"
  60. @rm -f $(OBJ) *~ core tags $(BINS)
  61. tags: $(SRC)
  62. @echo [ctags]
  63. @ctags $(SRC)
  64. depend:
  65. makedepend -Y $(SRC)
  66. # DO NOT DELETE