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

@ -14,7 +14,9 @@ HEADERS=$(wildcard *.h)
echo "CC $<"
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
all: ${FILES}
all: i3-msg
i3-msg: ${FILES}
echo "LINK i3-msg"
$(CC) $(LDFLAGS) -o i3-msg ${FILES} $(LIBS)