blob: 215f292cdb2ced687ae2e26e4cf9522d5b142c8e [file] [log] [blame]
Nico Huber83693c82016-10-08 22:17:55 +02001name := gfxinit
2
Nico Huber1d0abe42017-03-05 14:14:09 +01003ifeq ($(MAKECMDGOALS),gfx_test)
4prefixed-name := gfx_test
5link-type := program
6GFXINIT_TEST := y
7endif
8
Nico Huber83693c82016-10-08 22:17:55 +02009gfxinit-deplibs := libhw
10
11libhw-dir ?= ../libhwbase/dest
12include $(libhw-dir)/Makefile
Nico Huber1d0abe42017-03-05 14:14:09 +010013
Nico Huberac2a1412026-07-02 10:41:59 +020014$(gfxinit-objs): ADAFLAGS += -gnaty3abdefhiklnprSx
15
16# Allow statements after then/else as we arrange cmdline parsing as a table
17$(call src-to-obj,,gfxtest/hw-gfx-gma-gfx_test.adb): ADAFLAGS += -gnaty-S
18
Nico Huber1d0abe42017-03-05 14:14:09 +010019gfx_test: $(binary)
20
21.PHONY: gfx_test