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 $@ $<
20 echo "[libi3] AR libi3.a"
21 ar rcs libi3.a ${FILES}