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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # Makefile:
  3. # Gertboard - Examples using wiringPi
  4. #
  5. # Copyright (c) 2013 Gordon Henderson
  6. #################################################################################
  7. ifneq ($V,1)
  8. Q ?= @
  9. endif
  10. #DEBUG = -g -O0
  11. DEBUG = -O3
  12. CC ?= gcc
  13. INCLUDE = -I/usr/local/include
  14. CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)
  15. LDFLAGS = -L/usr/local/lib
  16. LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm
  17. # Should not alter anything below this line
  18. ###############################################################################
  19. SRC = gertboard.c \
  20. buttons.c 7segments.c \
  21. voltmeter.c temperature.c vumeter.c \
  22. record.c
  23. OBJ = $(SRC:.c=.o)
  24. BINS = $(SRC:.c=)
  25. all: $(BINS)
  26. gertboard: gertboard.o
  27. $Q echo [link]
  28. $Q $(CC) -o $@ gertboard.o $(LDFLAGS) $(LDLIBS)
  29. buttons: buttons.o
  30. $Q echo [link]
  31. $Q $(CC) -o $@ buttons.o $(LDFLAGS) $(LDLIBS)
  32. 7segments: 7segments.o
  33. $Q echo [link]
  34. $Q $(CC) -o $@ 7segments.o $(LDFLAGS) $(LDLIBS)
  35. voltmeter: voltmeter.o
  36. $Q echo [link]
  37. $Q $(CC) -o $@ voltmeter.o $(LDFLAGS) $(LDLIBS)
  38. temperature: temperature.o
  39. $Q echo [link]
  40. $Q $(CC) -o $@ temperature.o $(LDFLAGS) $(LDLIBS)
  41. vumeter: vumeter.o
  42. $Q echo [link]
  43. $Q $(CC) -o $@ vumeter.o $(LDFLAGS) $(LDLIBS)
  44. record: record.o
  45. $Q echo [link]
  46. $Q $(CC) -o $@ record.o $(LDFLAGS) $(LDLIBS)
  47. .c.o:
  48. $Q echo [CC] $<
  49. $Q $(CC) -c $(CFLAGS) $< -o $@
  50. clean:
  51. $Q echo [Clean]
  52. $Q rm -f $(OBJ) *~ core tags $(BINS)
  53. tags: $(SRC)
  54. $Q echo [ctags]
  55. $Q ctags $(SRC)
  56. depend:
  57. makedepend -Y $(SRC)
  58. # DO NOT DELETE