Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

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