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.
 
 
 
 
 

192 rindas
4.2 KiB

  1. #
  2. # Makefile:
  3. # wiringPi - A "wiring" library for the Raspberry Pi
  4. # https://github.com/wiringPi/wiringPi
  5. #
  6. # Copyright (c) 2012-2015 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. ifneq ($V,1)
  25. Q ?= @
  26. endif
  27. #DEBUG = -g -O0
  28. DEBUG = -O3
  29. CC ?= gcc
  30. INCLUDE = -I/usr/local/include
  31. CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)
  32. LDFLAGS = -L/usr/local/lib
  33. LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt
  34. # Should not alter anything below this line
  35. ###############################################################################
  36. SRC = \
  37. blink12.c blink12drcs.c blink6drcs.c blink8.c blink8-drcn.c blink.c blink-thread.c \
  38. buttons2.c buttons.c \
  39. clock.c \
  40. delayTest.c \
  41. ds1302.c \
  42. getBanks.c \
  43. isr1.c isr.c isr-osc.c \
  44. lcd-adafruit.c lcd.c \
  45. lowPower.c \
  46. max31855.c \
  47. nes.c \
  48. okLed.c \
  49. pwm.c \
  50. rht03.c \
  51. serialRead.c serialTest.c \
  52. servo.c \
  53. softPwm.c softTone.c \
  54. speed.c spiSpeed.c \
  55. wfi.c
  56. OBJ = $(SRC:.c=.o)
  57. BINS = $(SRC:.c=)
  58. all:
  59. $Q cat README.TXT
  60. $Q echo " $(BINS)" | fmt
  61. $Q echo ""
  62. really-all: $(BINS)
  63. blink: blink.o
  64. $Q echo [link]
  65. $Q $(CC) -o $@ blink.o $(LDFLAGS) $(LDLIBS)
  66. blink8: blink8.o
  67. $Q echo [link]
  68. $Q $(CC) -o $@ blink8.o $(LDFLAGS) $(LDLIBS)
  69. blink12drcs: blink12drcs.o
  70. $Q echo [link]
  71. $Q $(CC) -o $@ blink12drcs.o $(LDFLAGS) $(LDLIBS)
  72. blink12: blink12.o
  73. $Q echo [link]
  74. $Q $(CC) -o $@ blink12.o $(LDFLAGS) $(LDLIBS)
  75. speed: speed.o
  76. $Q echo [link]
  77. $Q $(CC) -o $@ speed.o $(LDFLAGS) $(LDLIBS)
  78. lcd: lcd.o
  79. $Q echo [link]
  80. $Q $(CC) -o $@ lcd.o $(LDFLAGS) $(LDLIBS)
  81. lcd-adafruit: lcd-adafruit.o
  82. $Q echo [link]
  83. $Q $(CC) -o $@ lcd-adafruit.o $(LDFLAGS) $(LDLIBS)
  84. clock: clock.o
  85. $Q echo [link]
  86. $Q $(CC) -o $@ clock.o $(LDFLAGS) $(LDLIBS)
  87. wfi: wfi.o
  88. $Q echo [link]
  89. $Q $(CC) -o $@ wfi.o $(LDFLAGS) $(LDLIBS)
  90. isr: isr.o
  91. $Q echo [link]
  92. $Q $(CC) -o $@ isr.o $(LDFLAGS) $(LDLIBS)
  93. isr-osc: isr-osc.o
  94. $Q echo [link]
  95. $Q $(CC) -o $@ isr-osc.o $(LDFLAGS) $(LDLIBS)
  96. nes: nes.o
  97. $Q echo [link]
  98. $Q $(CC) -o $@ nes.o $(LDFLAGS) $(LDLIBS)
  99. rht03: rht03.o
  100. $Q echo [link]
  101. $Q $(CC) -o $@ rht03.o $(LDFLAGS) $(LDLIBS)
  102. pwm: pwm.o
  103. $Q echo [link]
  104. $Q $(CC) -o $@ pwm.o $(LDFLAGS) $(LDLIBS)
  105. softPwm: softPwm.o
  106. $Q echo [link]
  107. $Q $(CC) -o $@ softPwm.o $(LDFLAGS) $(LDLIBS)
  108. softTone: softTone.o
  109. $Q echo [link]
  110. $Q $(CC) -o $@ softTone.o $(LDFLAGS) $(LDLIBS)
  111. delayTest: delayTest.o
  112. $Q echo [link]
  113. $Q $(CC) -o $@ delayTest.o $(LDFLAGS) $(LDLIBS)
  114. serialRead: serialRead.o
  115. $Q echo [link]
  116. $Q $(CC) -o $@ serialRead.o $(LDFLAGS) $(LDLIBS)
  117. serialTest: serialTest.o
  118. $Q echo [link]
  119. $Q $(CC) -o $@ serialTest.o $(LDFLAGS) $(LDLIBS)
  120. okLed: okLed.o
  121. $Q echo [link]
  122. $Q $(CC) -o $@ okLed.o $(LDFLAGS) $(LDLIBS)
  123. tone: tone.o
  124. $Q echo [link]
  125. $Q $(CC) -o $@ tone.o $(LDFLAGS) $(LDLIBS)
  126. servo: servo.o softServo.o
  127. $Q echo [link]
  128. $Q $(CC) -o $@ servo.o softServo.o $(LDFLAGS) $(LDLIBS)
  129. softServo.o: ../wiringPi/softServo.c ../wiringPi/softServo.h
  130. $Q echo [softServo]
  131. $Q $(CC) -c $(CFLAGS) $< -o softServo.o
  132. ds1302: ds1302.o
  133. $Q echo [link]
  134. $Q $(CC) -o $@ ds1302.o $(LDFLAGS) $(LDLIBS)
  135. max31855: max31855.o
  136. $Q echo [link]
  137. $Q $(CC) -o $@ max31855.o $(LDFLAGS) $(LDLIBS)
  138. .c.o:
  139. $Q echo [CC] $<
  140. $Q $(CC) -c $(CFLAGS) $< -o $@
  141. clean:
  142. $Q echo "[Clean]"
  143. $Q rm -f $(OBJ) *~ core tags $(BINS)
  144. echo:
  145. $Q echo "[BINS] $(BINS)"
  146. tags: $(SRC)
  147. $Q echo [ctags]
  148. $Q ctags $(SRC)
  149. depend:
  150. makedepend -Y $(SRC)
  151. # DO NOT DELETE