1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#
# Copyright (C) 2017 Milan Kupcevic
#
# You can redistribute and/or modify this software under the
# terms of the GNU General Public License version 3, or any later
# version as published by the Free Software Foundation.
#
# 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. If not, see <http://www.gnu.org/licenses/>.
#
# GPLv3+
#
MCU = atmega328p
F_CPU = 16000000
AVR_DEBUG_FLAG = -gdwarf-2
CPPFLAGS = -pthread
LDFLAGS = -pthread
ADD_LIBS = -lutil
BINS = simduino
AVR_BINS = atmega328p_dummy_blinky.axf
TARGETS = atmega328p_dummy_blinky.hex
all: $(BINS) $(AVR_BINS) $(TARGETS)
OBJS_simduino = simduino.o uart_pty.o
OBJS_atmega328p_dummy_blinky = atmega328p_dummy_blinky.avro
OBJS = $(OBJS_simduino) $(OBJS_atmega328p_dummy_blinky) *.vcd $(TARGETS) *.bin
simduino: $(OBJS_simduino)
atmega328p_dummy_blinky.axf: $(OBJS_atmega328p_dummy_blinky)
include ../makefile.common
|