mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2025-12-09 16:20:46 +00:00
23 lines
520 B
Makefile
23 lines
520 B
Makefile
IMAGECON=./bin/imagecon
|
|
SRCS=imagecon.c
|
|
HOST_WARNINGS=-pedantic-errors -Wfatal-errors -Wall -Werror -Wextra -Wno-unused-parameter -Wshadow
|
|
HOST_CFLAGS=$(HOST_WARNINGS)
|
|
|
|
imagecon: out bin $(SRCS)
|
|
gcc $(HOST_CFLAGS) $(SRCS) -o $(IMAGECON) -lpng
|
|
|
|
out:
|
|
mkdir out
|
|
|
|
bin:
|
|
mkdir bin
|
|
|
|
bitplane.bin copper-list.s: bin/imagecon
|
|
$(IMAGECON) ../../assets/hello.png out/hello
|
|
|
|
test: bitplane.bin copper-list.s
|
|
diff out/hello.bin reference/bitplane.bin
|
|
diff out/hello-copper-list.s reference/copper-list.s
|
|
|
|
clean:
|
|
rm -r out bin
|