/spectrumAnalyzer/Makefile

http://github.com/Yniold/liftsrc · Makefile · 50 lines · 33 code · 14 blank · 3 comment · 0 complexity · 322495538e0b0d3f7b9c9e3818984c14 MD5 · raw file

  1. #
  2. # Makefile for Spectrum Analyzer Software
  3. #
  4. VERSION=0.1
  5. PROJECT=spectrometerServer
  6. SHELL=/bin/sh
  7. ifeq ($(ARMBUILD),1)
  8. CPPFLAGS :=-DRUNONARM
  9. CROSS_COMPILE=arm-linux-
  10. else
  11. CROSS_COMPILE=
  12. CPPFLAGS :=-DRUNONPC -static
  13. LDFLAGS :=-lrt
  14. endif
  15. ifneq ($(ARMBUILD),1)
  16. CC := $(CROSS_COMPILE)gcc
  17. export CC
  18. LDFLAGS+=-static
  19. LDFLAGS+=-ggdb
  20. LDFLAGS+=-lusb
  21. LDFLAGS+=-lm
  22. LDFLAGS+=-L/usr/local/lib
  23. INSTDIR+=../bin/
  24. modules=
  25. headers=
  26. .SUFFIXES:
  27. .SUFFIXES: .c .o
  28. $(PROJECT) : $(PROJECT).c $(modules) $(headers)
  29. echo $(PROJECT) $(VERSION)
  30. $(CC) $(CPPFLAGS) $(CFLAGS) $(PROJECT).c $(modules) -o $(PROJECT) $(LDFLAGS)
  31. cp $(PROJECT) $(INSTDIR)
  32. all: $(PROJECT)
  33. endif
  34. clean:
  35. rm -f *.o
  36. rm -f spectrometerServer