2012-05-16 16:22:57 +02:00
|
|
|
ALL_TARGETS += i3-config-wizard/i3-config-wizard
|
|
|
|
INSTALL_TARGETS += install-i3-config-wizard
|
|
|
|
CLEAN_TARGETS += clean-i3-config-wizard
|
|
|
|
|
2012-12-25 14:15:06 +01:00
|
|
|
i3_config_wizard_SOURCES := $(wildcard i3-config-wizard/*.c)
|
2012-07-22 22:04:14 +02:00
|
|
|
i3_config_wizard_HEADERS := $(wildcard i3-config-wizard/*.h)
|
2012-08-05 21:36:49 +02:00
|
|
|
i3_config_wizard_CFLAGS = $(XCB_CFLAGS) $(XCB_KBD_CFLAGS) $(X11_CFLAGS) $(PANGO_CFLAGS)
|
|
|
|
i3_config_wizard_LIBS = $(XCB_LIBS) $(XCB_KBD_LIBS) $(X11_LIBS) $(PANGO_LIBS)
|
2012-05-16 16:22:57 +02:00
|
|
|
|
2012-12-25 14:15:06 +01:00
|
|
|
i3_config_wizard_OBJECTS := $(i3_config_wizard_SOURCES:.c=.o)
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
|
2012-12-25 14:15:06 +01:00
|
|
|
i3-config-wizard/%.o: i3-config-wizard/%.c $(i3_config_wizard_HEADERS) i3-config-parser.stamp
|
2012-05-16 16:22:57 +02:00
|
|
|
echo "[i3-config-wizard] CC $<"
|
2012-09-03 14:55:27 +02:00
|
|
|
$(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(i3_config_wizard_CFLAGS) $(I3_CFLAGS) $(CFLAGS) -c -o $@ $<
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
i3-config-wizard/i3-config-wizard: libi3.a $(i3_config_wizard_OBJECTS)
|
|
|
|
echo "[i3-config-wizard] Link i3-config-wizard"
|
2012-08-12 00:59:19 +02:00
|
|
|
$(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_config_wizard_LIBS)
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
install-i3-config-wizard: i3-config-wizard/i3-config-wizard
|
|
|
|
echo "[i3-config-wizard] Install"
|
|
|
|
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
|
|
|
|
$(INSTALL) -m 0755 i3-config-wizard/i3-config-wizard $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
|
|
|
|
clean-i3-config-wizard:
|
|
|
|
echo "[i3-config-wizard] Clean"
|
2012-09-19 18:05:51 +02:00
|
|
|
rm -f $(i3_config_wizard_OBJECTS) $(i3_config_wizard_SOURCES_GENERATED) i3-config-wizard/i3-config-wizard i3-config-wizard/cfgparse.{output,dot,tab.h,y.o}
|