summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-06-17 22:13:48 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-06-17 22:13:48 +0200
commit35936f4b71aece84643d7a6627efb73c2a0d9369 (patch)
treeabae74333c412e94401b48fec33578df0d72174a
parenta14045572debf4435cdd721e5fc8950ef39fa7a4 (diff)
makefile: fix linking1.1
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9c474c4..92e9cba 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ endif
#CFLAGS+=-DDZEN
CFLAGS+=$(EXTRA_CFLAGS)
-i3status.o: i3status.h
+%.o: %.c %.h
+ $(CC) $(CFLAGS) -c -o $@ $<
i3status: i3status.o