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