common.mk: Split WM XCB flags
This commit is contained in:
parent
fde8c0dd85
commit
51a0f312f2
14
common.mk
14
common.mk
|
@ -71,9 +71,6 @@ CFLAGS += $(call cflags_for_lib, xcb-aux)
|
|||
else
|
||||
CFLAGS += $(call cflags_for_lib, xcb-util)
|
||||
endif
|
||||
CFLAGS += $(call cflags_for_lib, xcb-icccm)
|
||||
CFLAGS += $(call cflags_for_lib, xcb-xinerama)
|
||||
CFLAGS += $(call cflags_for_lib, xcb-randr)
|
||||
CFLAGS += $(call cflags_for_lib, xcb)
|
||||
|
||||
LIBS += -L $(TOPDIR) -li3
|
||||
|
@ -85,11 +82,16 @@ LIBS += $(call ldflags_for_lib, xcb-aux,xcb-aux)
|
|||
else
|
||||
LIBS += $(call ldflags_for_lib, xcb-util)
|
||||
endif
|
||||
LIBS += $(call ldflags_for_lib, xcb-icccm,xcb-icccm)
|
||||
LIBS += $(call ldflags_for_lib, xcb-xinerama,xcb-xinerama)
|
||||
LIBS += $(call ldflags_for_lib, xcb-randr,xcb-randr)
|
||||
LIBS += $(call ldflags_for_lib, xcb,xcb)
|
||||
|
||||
# XCB WM stuff
|
||||
XCB_WM_CFLAGS := $(call cflags_for_lib, xcb-icccm)
|
||||
XCB_WM_CFLAGS += $(call cflags_for_lib, xcb-xinerama)
|
||||
XCB_WM_CFLAGS += $(call cflags_for_lib, xcb-randr)
|
||||
XCB_WM_LIBS := $(call ldflags_for_lib, xcb-icccm,xcb-icccm)
|
||||
XCB_WM_LIBS += $(call ldflags_for_lib, xcb-xinerama,xcb-xinerama)
|
||||
XCB_WM_LIBS += $(call ldflags_for_lib, xcb-randr,xcb-randr)
|
||||
|
||||
# Xlib
|
||||
X11_CFLAGS := $(call cflags_for_lib, x11)
|
||||
X11_LIBS := $(call ldflags_for_lib, x11,X11)
|
||||
|
|
|
@ -6,8 +6,8 @@ i3_SOURCES_GENERATED = src/cfgparse.tab.c src/cfgparse.yy.c
|
|||
i3_SOURCES := $(filter-out $(i3_SOURCES_GENERATED),$(wildcard src/*.c))
|
||||
i3_HEADERS_CMDPARSER := $(wildcard include/GENERATED_*.h)
|
||||
i3_HEADERS := $(filter-out $(i3_HEADERS_CMDPARSER),$(wildcard include/*.h))
|
||||
i3_CFLAGS = $(X11_CFLAGS) $(XCURSOR_CFLAGS) $(YAJL_CFLAGS) $(LIBEV_CFLAGS) $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
|
||||
i3_LIBS = $(X11_LIBS) $(XCURSOR_LIBS) $(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS) -lm
|
||||
i3_CFLAGS = $(XCB_WM_CFLAGS) $(X11_CFLAGS) $(XCURSOR_CFLAGS) $(YAJL_CFLAGS) $(LIBEV_CFLAGS) $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
|
||||
i3_LIBS = $(XCB_WM_LIBS) $(X11_LIBS) $(XCURSOR_LIBS) $(YAJL_LIBS) $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS) -lm
|
||||
|
||||
i3_OBJECTS := $(i3_SOURCES_GENERATED:.c=.o) $(i3_SOURCES:.c=.o)
|
||||
|
||||
|
|
Loading…
Reference in New Issue