/spectrumAnalyzer/Makefile
http://github.com/Yniold/liftsrc · Makefile · 50 lines · 33 code · 14 blank · 3 comment · 0 complexity · 322495538e0b0d3f7b9c9e3818984c14 MD5 · raw file
- #
- # Makefile for Spectrum Analyzer Software
- #
- VERSION=0.1
- PROJECT=spectrometerServer
- SHELL=/bin/sh
- ifeq ($(ARMBUILD),1)
- CPPFLAGS :=-DRUNONARM
- CROSS_COMPILE=arm-linux-
- else
- CROSS_COMPILE=
- CPPFLAGS :=-DRUNONPC -static
- LDFLAGS :=-lrt
- endif
- ifneq ($(ARMBUILD),1)
- CC := $(CROSS_COMPILE)gcc
- export CC
- LDFLAGS+=-static
- LDFLAGS+=-ggdb
- LDFLAGS+=-lusb
- LDFLAGS+=-lm
- LDFLAGS+=-L/usr/local/lib
- INSTDIR+=../bin/
- modules=
- headers=
- .SUFFIXES:
- .SUFFIXES: .c .o
- $(PROJECT) : $(PROJECT).c $(modules) $(headers)
- echo $(PROJECT) $(VERSION)
- $(CC) $(CPPFLAGS) $(CFLAGS) $(PROJECT).c $(modules) -o $(PROJECT) $(LDFLAGS)
- cp $(PROJECT) $(INSTDIR)
- all: $(PROJECT)
- endif
- clean:
- rm -f *.o
- rm -f spectrometerServer