1 # Default value so one can compile i3-msg standalone
4 include $(TOPDIR)/common.mk
6 CFLAGS += -I$(TOPDIR)/include
8 # Depend on the object files of all source-files in src/*.c and on all header files
9 FILES=$(patsubst %.c,%.o,$(wildcard *.c))
10 HEADERS=$(wildcard *.h)
12 # Depend on the specific file (.c for each .o) and on all headers
15 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
21 $(CC) $(LDFLAGS) -o i3-msg ${FILES} $(LIBS)
25 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
26 $(INSTALL) -m 0755 i3-msg $(DESTDIR)$(PREFIX)/bin/