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