about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-07-02 06:49:05 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-07-02 06:49:05 +0100
commit855a56631916bdff1438e11c232b88450f973648 (patch)
treec7ed1e1ae2aac45b3e3980cfa36bc45b9580e39e /Makefile
parentupdated to new libdraw (diff)
downloaddmenu-855a56631916bdff1438e11c232b88450f973648.tar.gz
dmenu-855a56631916bdff1438e11c232b88450f973648.tar.bz2
dmenu-855a56631916bdff1438e11c232b88450f973648.zip
added dmenu.h, common.c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0f29652..7274923 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 include config.mk
 
-SRC = dinput.c dmenu.c
+SRC = dinput.c dmenu.c common.c
 OBJ = ${SRC:.c=.o}
 
 all: options dinput dmenu
@@ -24,9 +24,13 @@ config.h:
 	@echo creating $@ from config.def.h
 	@cp config.def.h $@
 
-.o:
+dinput: dinput.o common.o
 	@echo CC -o $@
-	@${CC} -o $@ $< ${LDFLAGS}
+	@${CC} -o $@ $+ ${LDFLAGS}
+
+dmenu: dmenu.o common.o
+	@echo CC -o $@
+	@${CC} -o $@ $+ ${LDFLAGS}
 
 clean:
 	@echo cleaning