.PHONY: all compress help
all: bmp2gba4.exe bin2h.exe packbits.exe
compress: all
	upx -9 bmp2gba4.exe bin2h.exe packbits.exe
help:
	@echo Makefile for Pin Eight GBA tools
	@echo by Damian Yerrick
	@echo
	@echo make help: Display this message.
	@echo make all: Build tools.
	@echo make compress: Build tools and compress them with UPX.

bmp2gba4.exe: bmp2gba4.c
	gcc -Wall -O3 -s bmp2gba4.c -lalleg -o bmp2gba4.exe

bin2h.exe: bin2h.c
	gcc -Wall -O3 -s bin2h.c -o bin2h.exe

packbits.exe: packbits.c
	gcc -Wall -O3 -s packbits.c -o packbits.exe

