]> git.sur5r.net Git - i3/i3/commitdiff
common.mk: Split libev flags
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Sun, 22 Jul 2012 21:20:29 +0000 (23:20 +0200)
committerQuentin Glidic <sardemff7+git@sardemff7.net>
Sun, 22 Jul 2012 21:53:51 +0000 (23:53 +0200)
common.mk
i3bar/i3bar.mk
src/i3.mk

index 36d90318f0865772c095ad742ee5b48889e70d72..81ad2be5b6397d2cca3ba02ad43ddadcb40c042e 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -81,7 +81,6 @@ CFLAGS += $(call cflags_for_lib, yajl)
 # Fallback for libyajl 1 which did not include yajl_version.h. We need
 # YAJL_MAJOR from that file to decide which code path should be used.
 CFLAGS += -idirafter $(TOPDIR)/yajl-fallback
-CFLAGS += $(call cflags_for_lib, libev)
 
 LIBS += -lm
 LIBS += -L $(TOPDIR) -li3
@@ -100,7 +99,10 @@ LIBS += $(call ldflags_for_lib, xcb,xcb)
 LIBS += $(call ldflags_for_lib, xcursor,Xcursor)
 LIBS += $(call ldflags_for_lib, x11,X11)
 LIBS += $(call ldflags_for_lib, yajl,yajl)
-LIBS += $(call ldflags_for_lib, libev,ev)
+
+#libev
+LIBEV_CFLAGS := $(call cflags_for_lib, libev)
+LIBEV_LIBS   := $(call ldflags_for_lib, libev,ev)
 
 # libpcre
 PCRE_CFLAGS := $(call cflags_for_lib, libpcre)
index 988e598cb79f84ee6df5dc3d382e8b774b1caa30..e31a1373711b1540175efa13123e01ecc16404cf 100644 (file)
@@ -4,8 +4,8 @@ CLEAN_TARGETS += clean-i3bar
 
 i3bar_SOURCES := $(wildcard i3bar/src/*.c)
 i3bar_HEADERS := $(wildcard i3bar/include/*.h)
-i3bar_CFLAGS   =
-i3bar_LIBS     =
+i3bar_CFLAGS   = $(LIBEV_CFLAGS)
+i3bar_LIBS     = $(LIBEV_LIBS)
 
 i3bar_OBJECTS := $(i3bar_SOURCES:.c=.o)
 
index 390210f1d5142cf3a2493d395d07d0c733a2e42b..16ddae68bfce06d060fe35a025d8307617480a9d 100644 (file)
--- a/src/i3.mk
+++ b/src/i3.mk
@@ -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             = $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
-i3_LIBS               = $(PCRE_LIBS) $(LIBSN_LIBS)
+i3_CFLAGS             = $(LIBEV_CFLAGS) $(PCRE_CFLAGS) $(LIBSN_CFLAGS)
+i3_LIBS               = $(LIBEV_LIBS) $(PCRE_LIBS) $(LIBSN_LIBS)
 
 i3_OBJECTS := $(i3_SOURCES_GENERATED:.c=.o) $(i3_SOURCES:.c=.o)