gri3-wm/i3bar/Makefile

26 lines
438 B
Makefile
Raw Normal View History

2010-07-22 01:15:18 +02:00
TOPDIR=$(shell pwd)
include $(TOPDIR)/common.mk
FILES:=$(wildcard src/*.c)
FILES:=$(FILES:.c=.o)
HEADERS:=$(wildcard include/*.h)
all: ${FILES}
echo "LINK"
$(CC) -o i3bar ${FILES} ${LDFLAGS}
src/%.o: src/%.c ${HEADERS}
echo "CC $<"
$(CC) $(CFLAGS) -c -o $@ $<
2010-08-07 03:50:22 +02:00
install: all
echo "INSTALL"
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0755 i3bar $(DESTDIR)$(PREFIX)/bin
2010-07-22 01:15:18 +02:00
clean:
rm src/*.o
2010-08-07 03:50:22 +02:00
.PHONY: install clean