mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
43a8118d2e
Issue #3483
37 lines
864 B
Makefile
37 lines
864 B
Makefile
#
|
|
# Check config
|
|
#
|
|
|
|
ifeq ($(filter clean cleanall, $(MAKECMDGOALS)),)
|
|
GENODE_DIR := $(realpath $(dir $(MAKEFILE_LIST))/../..)
|
|
ifneq ($(shell pkg-config --print-errors --errors-to-stdout --exists xkbcommon),)
|
|
$(error Please install libxkbcommon-dev)
|
|
endif
|
|
endif
|
|
|
|
#
|
|
# Build rules
|
|
#
|
|
|
|
TARGET = xkb2ifcfg
|
|
|
|
SRC_CC = $(wildcard *.cc)
|
|
SRC_H = $(wildcard *.h)
|
|
|
|
CFLAGS = -Werror -Wall -Wextra -Wno-attributes -std=gnu++17 -ggdb
|
|
CFLAGS += -I$(GENODE_DIR)/repos/os/include
|
|
CFLAGS += -I$(GENODE_DIR)/repos/base/include
|
|
CFLAGS += -I$(GENODE_DIR)/repos/base/include/spec/64bit
|
|
CFLAGS += -I$(GENODE_DIR)/repos/base/include/spec/x86
|
|
CFLAGS += -I$(GENODE_DIR)/repos/base/include/spec/x86_64
|
|
CFLAGS += $(shell pkg-config --cflags --libs xkbcommon)
|
|
|
|
$(TARGET): $(SRC_CC) $(SRC_H) Makefile
|
|
g++ -o $@ $(SRC_CC) $(CFLAGS)
|
|
|
|
cleanall clean:
|
|
rm -f $(TARGET) *~
|
|
|
|
|
|
.PHONY: cleanall clean
|