summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-06-23 14:29:32 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-06-23 14:29:32 +0100
commit8f7b62e2b6d0c171233a3eb44e9a9ba6b1c9d1f6 (patch)
tree9fe6761192e2353b7cf975ab226af75f31592e35
parent2ec16d9cb2661c834e346b4cdef29449ddc2f29c (diff)
fixed makefile
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2f1cada..da5344b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ include config.mk
SRC = dinput.c dmenu.c draw.c
OBJ = ${SRC:.c=.o}
-all: options draw.o dinput dmenu
+all: options dinput dmenu
options:
@echo dmenu build options:
@@ -24,9 +24,13 @@ config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
-.o:
+dinput: dinput.o draw.o
@echo CC -o $@
- @${CC} -o $@ $< draw.o ${LDFLAGS}
+ @${CC} -o $@ $+ ${LDFLAGS}
+
+dmenu: dmenu.o draw.o
+ @echo CC -o $@
+ @${CC} -o $@ $+ ${LDFLAGS}
clean:
@echo cleaning