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