PageRenderTime 21ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 5VERSION=0.1
 6PROJECT=spectrometerServer
 7
 8SHELL=/bin/sh
 9
10ifeq ($(ARMBUILD),1)
11CPPFLAGS :=-DRUNONARM
12CROSS_COMPILE=arm-linux-
13else
14CROSS_COMPILE=
15CPPFLAGS :=-DRUNONPC -static
16LDFLAGS :=-lrt
17endif
18
19ifneq ($(ARMBUILD),1)
20CC := $(CROSS_COMPILE)gcc
21export CC
22
23LDFLAGS+=-static
24LDFLAGS+=-ggdb
25LDFLAGS+=-lusb
26LDFLAGS+=-lm
27LDFLAGS+=-L/usr/local/lib
28INSTDIR+=../bin/
29
30
31modules=
32
33headers=
34
35.SUFFIXES:
36.SUFFIXES: .c .o
37
38$(PROJECT) : $(PROJECT).c $(modules) $(headers)
39	     echo $(PROJECT) $(VERSION)
40	     $(CC) $(CPPFLAGS) $(CFLAGS) $(PROJECT).c $(modules) -o $(PROJECT) $(LDFLAGS)
41	     cp $(PROJECT) $(INSTDIR)
42
43all: $(PROJECT)
44
45endif
46
47clean: 
48	rm -f *.o
49	rm -f spectrometerServer
50