mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
f33cb3cf80
* Now uses topti instead of fxlib for text (including MMU failure) * Fit .pretext into 4k for everything before MMU succeeds * A short version of sprintf() for dynamic messages * Support a driver function, status(), to allow early driver debug * Expose more useful platform information in <gint/mpu.h> * Expose the first of a few CASIOWIN syscalls
59 lines
1 KiB
Makefile
59 lines
1 KiB
Makefile
#! /usr/bin/make -f
|
|
|
|
builds := $(wildcard build*)
|
|
|
|
ifeq "$(builds)" ""
|
|
nobuild:
|
|
@ echo "error: you don't seem to have any build directory (build*)" >&2
|
|
@ echo "" >&2
|
|
@ echo "You can configure one like this:" >&2
|
|
@ echo " mkdir build && cd build && ../configure [options...]" >&2
|
|
@ echo "" >&2
|
|
@ false
|
|
endif
|
|
|
|
#
|
|
# all targets
|
|
#
|
|
|
|
all-targets := $(foreach b,$(builds),all-$b)
|
|
|
|
all: $(all-targets)
|
|
|
|
all-build%: build%
|
|
@ echo -e "\n$B::$W Making into $<$N"
|
|
@ $(MAKE) --no-print-directory -C $<
|
|
|
|
#
|
|
# install targets
|
|
#
|
|
|
|
install-targets := $(foreach b,$(builds),install-$b)
|
|
|
|
install: $(install-targets)
|
|
|
|
install-build%: build%
|
|
@ echo -e "\n$B::$W Installing from $<$N"
|
|
@ $(MAKE) --no-print-directory -C $< install
|
|
|
|
#
|
|
# uninstall targets
|
|
#
|
|
|
|
uninstall-targets := $(foreach b,$(builds),uninstall-$b)
|
|
|
|
uninstall: $(uninstall-targets)
|
|
|
|
uninstall-build%: build%
|
|
@ echo -e "\n$B::$W Uninstalling from $<$N"
|
|
@ $(MAKE) --no-print-directory -C $< uninstall
|
|
|
|
#
|
|
# Coloring tools
|
|
#
|
|
|
|
B = \e[34;1m
|
|
W = \e[39;1m
|
|
N = \e[0m
|
|
|
|
.PHONY: nobuild all all-build% install install-build%
|