Files
picovga-RGsB/examples/vga_ants/Makefile
Wayne Venables 49a948cdfc Refactor paths
2023-02-24 21:15:35 -08:00

100 lines
2.6 KiB
Makefile

# make clean ... clean
# make all ... compile
##############################################################################
# Input files
# ASM source files
ASRC +=
# C source files
CSRC +=
# C++ source files
SRC += src/main.cpp
SRC += src/game.cpp
SRC += img/background.cpp
SRC += img/blacksreds.cpp
SRC += img/cards.cpp
SRC += img/castle.cpp
SRC += img/castle_shadow.cpp
SRC += img/cloud.cpp
SRC += img/cursor.cpp
SRC += img/fence.cpp
SRC += img/fence_shadow.cpp
SRC += img/flags.cpp
SRC += img/grass.cpp
SRC += img/open.cpp
SRC += img/open_sel.cpp
SRC += img/open_sel2.cpp
SRC += img/select.cpp
SRC += img/state.cpp
SRC += img/title.cpp
SRC += img/title2.cpp
SRC += img/trumpet.cpp
SRC += img/win.cpp
SRC += snd/applause.cpp
SRC += snd/birds.cpp
SRC += snd/build_castle.cpp
SRC += snd/build_fence.cpp
SRC += snd/card.cpp
SRC += snd/curse.cpp
SRC += snd/decrease_stocks.cpp
SRC += snd/fanfares.cpp
SRC += snd/increase_power.cpp
SRC += snd/increase_stocks.cpp
SRC += snd/ruin_castle.cpp
SRC += snd/ruin_fence.cpp
##############################################################################
# Configuration
# defines
DEFINE += -DCFG_TUSB_DEBUG=0
DEFINE += -DCFG_TUSB_MCU=OPT_MCU_RP2040
DEFINE += -DCFG_TUSB_OS=OPT_OS_PICO
DEFINE += -DPICO_BIT_OPS_PICO=1
DEFINE += -DPICO_BOARD=\"pico\"
DEFINE += -DPICO_BUILD=1
DEFINE += -DPICO_CMAKE_BUILD_TYPE=\"Release\"
DEFINE += -DPICO_COPY_TO_RAM=0
DEFINE += -DPICO_CXX_ENABLE_EXCEPTIONS=0
DEFINE += -DPICO_DIVIDER_HARDWARE=1
DEFINE += -DPICO_DOUBLE_PICO=1
DEFINE += -DPICO_FLOAT_PICO=1
DEFINE += -DPICO_INT64_OPS_PICO=1
DEFINE += -DPICO_MEM_OPS_PICO=1
DEFINE += -DPICO_NO_FLASH=0
DEFINE += -DPICO_NO_HARDWARE=0
DEFINE += -DPICO_ON_DEVICE=1
DEFINE += -DPICO_PRINTF_PICO=1
DEFINE += -DPICO_PROGRAM_URL=\"https://github.com/raspberrypi/pico-examples\"
DEFINE += -DPICO_TARGET_NAME=\"pico\"
DEFINE += -DPICO_USE_BLOCKED_RAM=0
DEFINE += -DNDEBUG
# stdio output (select one option)
#DEFINE += -DPICO_STDIO_UART=1
#DEFINE += -DPICO_STDIO_SEMIHOSTING=1
DEFINE += -DPICO_STDIO_USB=1
# How to connect UART to Pico:
# +---USB---+
# <-- UART0_TX GP0 |.1 40.|VBUS --- +5V power output to USB device
# --> UART0_RX GP1 |.2 39.|VSYS ---|<|--- +5V power input
# --- GND |.3 38.| GND K diode A
# GP2 |.4 37.| 3V3_EN
# GP3 |.5 36.| 3V3_OUT
# ......
#
# USB/UART adaptor PL2303TA:
# red ......... +5V VSYS (39)
# black ....... GND (3)
# white RxD ... UART0_TX GP0 (1)
# green TxD ... UART0_RX GP1 (2)
# Setup: 115200 Baud
include ../Makefile.inc