| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | name := gfxinit |
| 2 | |
| Nico Huber | 1d0abe4 | 2017-03-05 14:14:09 +0100 | [diff] [blame] | 3 | ifeq ($(MAKECMDGOALS),gfx_test) |
| 4 | prefixed-name := gfx_test |
| 5 | link-type := program |
| 6 | GFXINIT_TEST := y |
| 7 | endif |
| 8 | |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 9 | gfxinit-deplibs := libhw |
| 10 | |
| 11 | libhw-dir ?= ../libhwbase/dest |
| 12 | include $(libhw-dir)/Makefile |
| Nico Huber | 1d0abe4 | 2017-03-05 14:14:09 +0100 | [diff] [blame] | 13 | |
| Nico Huber | ac2a141 | 2026-07-02 10:41:59 +0200 | [diff] [blame^] | 14 | $(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 Huber | 1d0abe4 | 2017-03-05 14:14:09 +0100 | [diff] [blame] | 19 | gfx_test: $(binary) |
| 20 | |
| 21 | .PHONY: gfx_test |