Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

169 Zeilen
3.7 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 blink8.c blink12.c \
  34. blink12drcs.c \
  35. pwm.c \
  36. speed.c wfi.c isr.c isr-osc.c \
  37. lcd.c lcd-adafruit.c clock.c \
  38. nes.c \
  39. softPwm.c softTone.c \
  40. delayTest.c serialRead.c serialTest.c okLed.c ds1302.c \
  41. lowPower.c \
  42. rht03.c piglow.c
  43. OBJ = $(SRC:.c=.o)
  44. BINS = $(SRC:.c=)
  45. all:
  46. @cat README.TXT
  47. @echo " $(BINS)" | fmt
  48. @echo ""
  49. really-all: $(BINS)
  50. blink: blink.o
  51. @echo [link]
  52. @$(CC) -o $@ blink.o $(LDFLAGS) $(LDLIBS)
  53. blink8: blink8.o
  54. @echo [link]
  55. @$(CC) -o $@ blink8.o $(LDFLAGS) $(LDLIBS)
  56. blink12drcs: blink12drcs.o
  57. @echo [link]
  58. @$(CC) -o $@ blink12drcs.o $(LDFLAGS) $(LDLIBS)
  59. blink12: blink12.o
  60. @echo [link]
  61. @$(CC) -o $@ blink12.o $(LDFLAGS) $(LDLIBS)
  62. speed: speed.o
  63. @echo [link]
  64. @$(CC) -o $@ speed.o $(LDFLAGS) $(LDLIBS)
  65. lcd: lcd.o
  66. @echo [link]
  67. @$(CC) -o $@ lcd.o $(LDFLAGS) $(LDLIBS)
  68. lcd-adafruit: lcd-adafruit.o
  69. @echo [link]
  70. @$(CC) -o $@ lcd-adafruit.o $(LDFLAGS) $(LDLIBS)
  71. clock: clock.o
  72. @echo [link]
  73. @$(CC) -o $@ clock.o $(LDFLAGS) $(LDLIBS)
  74. wfi: wfi.o
  75. @echo [link]
  76. @$(CC) -o $@ wfi.o $(LDFLAGS) $(LDLIBS)
  77. isr: isr.o
  78. @echo [link]
  79. @$(CC) -o $@ isr.o $(LDFLAGS) $(LDLIBS)
  80. isr-osc: isr-osc.o
  81. @echo [link]
  82. @$(CC) -o $@ isr-osc.o $(LDFLAGS) $(LDLIBS)
  83. nes: nes.o
  84. @echo [link]
  85. @$(CC) -o $@ nes.o $(LDFLAGS) $(LDLIBS)
  86. rht03: rht03.o
  87. @echo [link]
  88. @$(CC) -o $@ rht03.o $(LDFLAGS) $(LDLIBS)
  89. pwm: pwm.o
  90. @echo [link]
  91. @$(CC) -o $@ pwm.o $(LDFLAGS) $(LDLIBS)
  92. softPwm: softPwm.o
  93. @echo [link]
  94. @$(CC) -o $@ softPwm.o $(LDFLAGS) $(LDLIBS)
  95. softTone: softTone.o
  96. @echo [link]
  97. @$(CC) -o $@ softTone.o $(LDFLAGS) $(LDLIBS)
  98. delayTest: delayTest.o
  99. @echo [link]
  100. @$(CC) -o $@ delayTest.o $(LDFLAGS) $(LDLIBS)
  101. serialRead: serialRead.o
  102. @echo [link]
  103. @$(CC) -o $@ serialRead.o $(LDFLAGS) $(LDLIBS)
  104. serialTest: serialTest.o
  105. @echo [link]
  106. @$(CC) -o $@ serialTest.o $(LDFLAGS) $(LDLIBS)
  107. okLed: okLed.o
  108. @echo [link]
  109. @$(CC) -o $@ okLed.o $(LDFLAGS) $(LDLIBS)
  110. tone: tone.o
  111. @echo [link]
  112. @$(CC) -o $@ tone.o $(LDFLAGS) $(LDLIBS)
  113. ds1302: ds1302.o
  114. @echo [link]
  115. @$(CC) -o $@ ds1302.o $(LDFLAGS) $(LDLIBS)
  116. piglow: piglow.o
  117. @echo [link]
  118. @$(CC) -o $@ piglow.o $(LDFLAGS) $(LDLIBS)
  119. .c.o:
  120. @echo [CC] $<
  121. @$(CC) -c $(CFLAGS) $< -o $@
  122. clean:
  123. @echo "[Clean]"
  124. @rm -f $(OBJ) *~ core tags $(BINS)
  125. tags: $(SRC)
  126. @echo [ctags]
  127. @ctags $(SRC)
  128. depend:
  129. makedepend -Y $(SRC)
  130. # DO NOT DELETE