fix(runtime): make startup and GTK installation explicit
This commit is contained in:
11
xim/Makefile
11
xim/Makefile
@@ -1,13 +1,16 @@
|
||||
CC = cc
|
||||
XIM_CFLAGS = $(shell pkg-config --cflags xcb-imdkit xkbcommon-x11)
|
||||
XIM_LIBS = $(shell pkg-config --libs xcb-imdkit xkbcommon-x11)
|
||||
CFLAGS = -Wall -Wextra -O2 -I.. $(XIM_CFLAGS)
|
||||
PKG_CONFIG ?= pkg-config
|
||||
CFLAGS ?= -O2
|
||||
XIM_CFLAGS = $(shell $(PKG_CONFIG) --cflags xcb-imdkit xkbcommon-x11)
|
||||
XIM_LIBS = $(shell $(PKG_CONFIG) --libs xcb-imdkit xkbcommon-x11)
|
||||
TEST = xim_test
|
||||
|
||||
all: $(TEST)
|
||||
|
||||
$(TEST): ../tests/xim_test.c keymap.c ximtext.c
|
||||
$(CC) $(CFLAGS) -o $@ ../tests/xim_test.c keymap.c ximtext.c $(XIM_LIBS)
|
||||
$(CC) $(CPPFLAGS) -I.. $(XIM_CFLAGS) -Wall -Wextra $(CFLAGS) \
|
||||
$(LDFLAGS) -o $@ ../tests/xim_test.c keymap.c ximtext.c \
|
||||
$(XIM_LIBS) $(LDLIBS)
|
||||
|
||||
check: $(TEST)
|
||||
./$(TEST)
|
||||
|
||||
Reference in New Issue
Block a user