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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #
  2. # Makefile:
  3. # wiringPi - Wiring Compatable library for the Raspberry Pi
  4. # https://projects.drogon.net/wiring-pi
  5. #
  6. # Copyright (c) 2012-2013 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. ###############################################################################
  32. SRC = blink.c button.c blink-io.c volts.c bright.c
  33. OBJ = $(SRC:.c=.o)
  34. BINS = $(SRC:.c=)
  35. all: $(BINS)
  36. blink: blink.o
  37. @echo [link]
  38. @$(CC) -o $@ blink.o $(LDFLAGS) $(LDLIBS)
  39. blink-io: blink-io.o
  40. @echo [link]
  41. @$(CC) -o $@ blink-io.o $(LDFLAGS) $(LDLIBS)
  42. button: button.o
  43. @echo [link]
  44. @$(CC) -o $@ button.o $(LDFLAGS) $(LDLIBS)
  45. volts: volts.o
  46. @echo [link]
  47. @$(CC) -o $@ volts.o $(LDFLAGS) $(LDLIBS)
  48. bright: bright.o
  49. @echo [link]
  50. @$(CC) -o $@ bright.o $(LDFLAGS) $(LDLIBS)
  51. .c.o:
  52. @echo [CC] $<
  53. @$(CC) -c $(CFLAGS) $< -o $@
  54. clean:
  55. @echo "[Clean]"
  56. @rm -f $(OBJ) *~ core tags $(BINS)
  57. tags: $(SRC)
  58. @echo [ctags]
  59. @ctags $(SRC)
  60. depend:
  61. makedepend -Y $(SRC)
  62. # DO NOT DELETE