USB2SPDIF/reference/airspy_dma/firmware-master/airspy_rom_to_ram/Makefile
jyzhiyu 1cb7b3927b Documents Reference
Signed-off-by: jyzhiyu <jyzhiyu@gmail.com>
2015-12-28 10:00:41 +08:00

49 lines
1.3 KiB
Makefile

# Hey Emacs, this is a -*- makefile -*-
#
# Copyright 2013/2014 Benjamin Vernoux <bvernoux@gmail.com>
#
# This file is part of AirSpy (based on HackRF project).
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
#
BINARY = airspy_rom_to_ram
SRC_DIR = airspy_m4
SRC = airspy_m4.c adchs.c airspy_m4_conf.c
OBJ = m0_bin.o m0s_bin.o
# Source from ../common dir
VPATH += ../common
SRC += \
fault_handler.c \
airspy_core.c \
si5351c.c \
w25q80bv.c \
rom_iap.c \
signal_mcu.c
LDSCRIPT = ../common/LPC4370_M4_rom_to_ram.ld
%.o: ../$(SRC_DIR)/%.c Makefile
@printf " CC $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
include ../common/Makefile_inc.mk