Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
360 f9daq 1
#
2
# $Id: Makefile 1235 2014-02-21 16:44:10Z ales.bardorfer $
3
#
4
# Red Pitaya specific application Makefile.
5
#
6
 
7
APP=$(notdir $(CURDIR:%/=%))
8
 
9
# Versioning system
10
BUILD_NUMBER ?= 0
11
REVISION ?= devbuild
12
VER:=$(shell cat info/info.json | grep version | sed -e 's/.*:\ *\"//' | sed -e 's/-.*//')
13
 
14
INSTALL_DIR ?= ../../build
15
 
16
CONTROLLERHF = controllerhf.so
17
 
18
CFLAGS += -DVERSION=$(VER)-$(BUILD_NUMBER) -DREVISION=$(REVISION)
19
export CFLAGS
20
 
21
all: $(CONTROLLERHF)
22
 
23
$(CONTROLLERHF):
24
	$(MAKE) -C src
25
 
26
clean:
27
	$(MAKE) -C src clean
28
	-$(RM) *.so