GBARunner3/code/Makefile
lifehackerhansol f294141d6b
Makefile: add a debug target
The `test` application is unnecessary for the end user, so for the
default target, only build the bootstrap module.

The new `debug` target will build everything.
2024-03-25 08:19:07 -07:00

39 lines
1.2 KiB
Makefile

#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
export TARGET := $(shell basename $(CURDIR))
export TOPDIR := $(CURDIR)
include $(DEVKITARM)/ds_rules
.PHONY: checklibtwl checkbootstrap checktest clean
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
all: checklibtwl checkbootstrap
debug: all checktest
#---------------------------------------------------------------------------------
checklibtwl:
$(MAKE) -C libs/libtwl
#---------------------------------------------------------------------------------
checkbootstrap: checklibtwl
$(MAKE) -C bootstrap
#---------------------------------------------------------------------------------
checktest:
$(MAKE) -C test
#---------------------------------------------------------------------------------
clean:
$(MAKE) -C libs/libtwl clean
$(MAKE) -C bootstrap clean
$(MAKE) -C test clean