2012-05-16 10:22:57 -04:00
|
|
|
ALL_TARGETS += i3-dump-log/i3-dump-log
|
|
|
|
INSTALL_TARGETS += install-i3-dump-log
|
|
|
|
CLEAN_TARGETS += clean-i3-dump-log
|
|
|
|
|
|
|
|
i3_dump_log_SOURCES := $(wildcard i3-dump-log/*.c)
|
|
|
|
i3_dump_log_HEADERS := $(wildcard i3-dump-log/*.h)
|
2012-07-22 18:10:42 -04:00
|
|
|
i3_dump_log_CFLAGS = $(XCB_CFLAGS)
|
|
|
|
i3_dump_log_LIBS = $(XCB_LIBS)
|
2012-05-16 10:22:57 -04:00
|
|
|
|
|
|
|
i3_dump_log_OBJECTS := $(i3_dump_log_SOURCES:.c=.o)
|
|
|
|
|
|
|
|
|
|
|
|
i3-dump-log/%.o: i3-dump-log/%.c $(i3_dump_log_HEADERS)
|
|
|
|
echo "[i3-dump-log] CC $<"
|
2012-07-22 16:27:45 -04:00
|
|
|
$(CC) $(I3_CPPFLAGS) $(CPPFLAGS) $(i3_dump_log_CFLAGS) $(I3_CFLAGS) $(CFLAGS) -c -o $@ $<
|
2012-05-16 10:22:57 -04:00
|
|
|
|
|
|
|
i3-dump-log/i3-dump-log: libi3.a $(i3_dump_log_OBJECTS)
|
|
|
|
echo "[i3-dump-log] Link i3-dump-log"
|
2012-07-23 04:56:44 -04:00
|
|
|
$(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_dump_log_LIBS)
|
2012-05-16 10:22:57 -04:00
|
|
|
|
|
|
|
install-i3-dump-log: i3-dump-log/i3-dump-log
|
|
|
|
echo "[i3-dump-log] Install"
|
|
|
|
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
|
|
|
|
$(INSTALL) -m 0755 i3-dump-log/i3-dump-log $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
|
|
|
|
clean-i3-dump-log:
|
|
|
|
echo "[i3-dump-log] Clean"
|
|
|
|
rm -f $(i3_dump_log_OBJECTS) i3-dump-log/i3-dump-log
|