mirror of
https://github.com/Gericom/GBARunner3.git
synced 2025-06-19 03:35:32 -04:00

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.
39 lines
1.2 KiB
Makefile
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
|