makefiles: build subdirs (Thanks Kacper)

This commit is contained in:
Michael Stapelberg
2011-07-25 00:31:35 +02:00
parent 1a3f4c2f7d
commit 6a07e08320
5 changed files with 31 additions and 13 deletions

View File

@ -12,9 +12,11 @@ HEADERS=$(wildcard *.h)
echo "CC $<"
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
all: ${FILES}
all: i3-input
i3-input: ${FILES}
echo "LINK i3-input"
$(CC) $(LDFLAGS) -o i3-input ${FILES} $(LIBS)
$(CC) $(LDFLAGS) -o $@ ${FILES} $(LIBS)
install: all
echo "INSTALL"