~ubuntu-branches/ubuntu/trusty/gnuradio/trusty

« back to all changes in this revision

Viewing changes to usrp2/firmware/Makefile.common

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Makefile -*-
 
2
#
 
3
# Copyright 2007 Free Software Foundation, Inc.
 
4
#
 
5
# This program is free software: you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation, either version 3 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
#
 
18
 
 
19
STD_INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib
 
20
 
 
21
#HAL_IO = -DHAL_IO_USES_DBOARD_PINS 
 
22
HAL_IO = -DHAL_IO_USES_UART 
 
23
 
 
24
AM_CPPFLAGS = $(HAL_IO) $(STD_INCLUDES)
 
25
 
 
26
STD_CFLAGS = --std=gnu99 -Wall -Werror-implicit-function-declaration -mxl-soft-div -msoft-float
 
27
 
 
28
AM_CFLAGS = $(STD_CFLAGS) -mxl-soft-mul -mxl-barrel-shift
 
29
#AM_CFLAGS = $(STD_CFLAGS) -mxl-soft-mul -mxl-barrel-shift -mxl-gp-opt -G 16384
 
30
 
 
31
 
 
32
#LINKER_SCRIPT = $(top_srcdir)/lib/microblaze.ld
 
33
#AM_LDFLAGS = -Wl,-T,$(LINKER_SCRIPT) -Wl,-defsym -Wl,_STACK_SIZE=1024
 
34
#AM_LDFLAGS = -Wl,-T,$(LINKER_SCRIPT) -Wl,-Map -Wl,$@.map
 
35
#AM_LDFLAGS = -Wl,-T,$(LINKER_SCRIPT)
 
36
AM_LDFLAGS = -Wl,-Map -Wl,$@.map -Wl,-defsym -Wl,_STACK_SIZE=3072
 
37
#AM_LDFLAGS = -Wl,-defsym -Wl,_STACK_SIZE=2048
 
38
 
 
39
 
 
40
%.bin : %
 
41
        mb-objcopy -O binary $< $@
 
42
 
 
43
%.dump : %
 
44
        mb-objdump -DSC $< > $@
 
45
 
 
46
%.rom : %.bin
 
47
        hexdump -v -e'1/1 "%.2X\n"' $< > $@
 
48
 
 
49
 
 
50
.PRECIOUS : %.bin
 
51
 
 
52
 
 
53
BINS =  $(noinst_PROGRAMS:=.bin)
 
54
ROMS =  $(noinst_PROGRAMS:=.rom)
 
55
DUMPS = $(noinst_PROGRAMS:=.dump)
 
56
 
 
57
noinst_DATA = $(BINS) $(ROMS) $(DUMPS)
 
58
 
 
59
CLEANFILES = $(ROMS) $(DUMPS) $(BINS)