Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

105 lignes
2.6 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. LIBS = -lwiringPi
  31. # Should not alter anything below this line
  32. ###############################################################################
  33. SRC = test1.c test2.c speed.c lcd.c wfi.c piface.c gertboard.c nes.c delayTest.c softPwm.c
  34. OBJ = test1.o test2.o speed.o lcd.o wfi.o piface.o gertboard.o nes.o delayTest.o softPwm.o
  35. BINS = test1 test2 speed lcd wfi piface gertboard nes delayTest softPwm
  36. all:
  37. @cat README.TXT
  38. @echo " $(BINS)" | fmt
  39. @echo ""
  40. test1: test1.o
  41. @echo [link]
  42. $(CC) -o $@ test1.o $(LDFLAGS) $(LIBS)
  43. test2: test2.o
  44. @echo [link]
  45. $(CC) -o $@ test2.o $(LDFLAGS) $(LIBS)
  46. speed: speed.o
  47. @echo [link]
  48. $(CC) -o $@ speed.o $(LDFLAGS) $(LIBS)
  49. lcd: lcd.o
  50. @echo [link]
  51. $(CC) -o $@ lcd.o $(LDFLAGS) $(LIBS)
  52. wfi: wfi.o
  53. @echo [link]
  54. $(CC) -o $@ wfi.o $(LDFLAGS) $(LIBS) -lpthread
  55. piface: piface.o
  56. @echo [link]
  57. $(CC) -o $@ piface.o $(LDFLAGS) $(LIBS) -lpthread
  58. gertboard: gertboard.o
  59. @echo [link]
  60. $(CC) -o $@ gertboard.o $(LDFLAGS) $(LIBS) -lm
  61. nes: nes.o
  62. @echo [link]
  63. $(CC) -o $@ nes.o $(LDFLAGS) $(LIBS) -lm
  64. softPwm: softPwm.o
  65. @echo [link]
  66. $(CC) -o $@ softPwm.o $(LDFLAGS) $(LIBS) -lm -lpthread
  67. delayTest: delayTest.o
  68. @echo [link]
  69. $(CC) -o $@ delayTest.o $(LDFLAGS) $(LIBS)
  70. .c.o:
  71. @echo [CC] $<
  72. @$(CC) -c $(CFLAGS) $< -o $@
  73. clean:
  74. rm -f $(OBJ) *~ core tags test1 test2 speed lcd wfi piface gertboard nes delayTest softPwm
  75. tags: $(SRC)
  76. @echo [ctags]
  77. @ctags $(SRC)
  78. depend:
  79. makedepend -Y $(SRC)
  80. # DO NOT DELETE