CommonPIC32

Annotated examples/vga-dual/Makefile

74:32cb6b232444
2018-10-29 Paul Boddie Improved the blitting code to permit saving and restoring framebuffer data and for blitting with a key colour for transparency. Introduced a sprite to test the blitting code. Established a function to introduce delays in the example code.
paul@46 1
# Makefile - Build the PIC32 deployment payload
paul@46 2
#
paul@46 3
# Copyright (C) 2015, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
paul@46 4
# Copyright (C) Xiangfu Liu <xiangfu@sharism.cc>
paul@46 5
#
paul@46 6
# This program is free software: you can redistribute it and/or modify
paul@46 7
# it under the terms of the GNU General Public License as published by
paul@46 8
# the Free Software Foundation, either version 3 of the License, or
paul@46 9
# (at your option) any later version.
paul@46 10
#
paul@46 11
# This program is distributed in the hope that it will be useful,
paul@46 12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
paul@46 13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
paul@46 14
# GNU General Public License for more details.
paul@46 15
#
paul@46 16
# You should have received a copy of the GNU General Public License
paul@46 17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
paul@46 18
paul@46 19
include ../../mk/common.mk
paul@46 20
paul@46 21
TARGET = vga.elf
paul@46 22
DUMP = $(TARGET:.elf=.dump)
paul@46 23
MAP = $(TARGET:.elf=.map)
paul@46 24
paul@46 25
HEX = $(TARGET:.elf=.hex)
paul@46 26
SREC = $(TARGET:.elf=.srec)
paul@46 27
paul@46 28
# Ordering of objects is important and cannot be left to replacement rules.
paul@46 29
paul@74 30
SRC = $(START_SRC) main.c $(COMMON_SRC) $(DISPLAY_SRC) screendata.S sprite.S
paul@74 31
OBJ = $(START_OBJ) main.o $(COMMON_OBJ) $(DISPLAY_OBJ) screendata.o sprite.o
paul@46 32
paul@59 33
# Application-specific adjustments.
paul@59 34
# See: examples/vga/Makefile
paul@59 35
paul@59 36
CFLAGS += -DLINE_CHANNELS=2 -I../vga
paul@59 37
paul@46 38
include ../../mk/rules.mk