about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-11-11 23:56:39 +0000
committerConnor Lane Smith <cls@lubutu.com>2010-11-11 23:56:39 +0000
commita0a99d10e1a019f74a8b2af4d5f8b47348e08a75 (patch)
tree78f9f8c219dd0bcce21096f63fbbd7962f111dd8 /Makefile
parent-m flag to fix dwm selmon bug (diff)
downloaddmenu-a0a99d10e1a019f74a8b2af4d5f8b47348e08a75.tar.gz
dmenu-a0a99d10e1a019f74a8b2af4d5f8b47348e08a75.tar.bz2
dmenu-a0a99d10e1a019f74a8b2af4d5f8b47348e08a75.zip
removed libdc dependence
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c183779..6775a10 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 
 include config.mk
 
-all: options dmenu dmenu_path
+all: options dmenu dmenu_path config.mk
 
 options:
 	@echo dmenu build options:
@@ -11,16 +11,20 @@ options:
 	@echo "LDFLAGS  = ${LDFLAGS}"
 	@echo "CC       = ${CC}"
 
-dmenu: dmenu.c config.mk
-dmenu_path: dmenu_path.c
+dmenu: dmenu.o draw.o
+dmenu_path: dmenu_path.o
+
+.c.o:
+	@echo CC -c $<
+	@${CC} -c $< ${CFLAGS}
 
 dmenu dmenu_path:
 	@echo CC -o $@
-	@${CC} -o $@ $< ${CFLAGS} ${LDFLAGS}
+	@${CC} -o $@ $+ ${LDFLAGS}
 
 clean:
 	@echo cleaning
-	@rm -f dmenu dmenu_path dmenu-${VERSION}.tar.gz
+	@rm -f dmenu dmenu.o draw.o dmenu_path dmenu_path.o dmenu-${VERSION}.tar.gz
 
 dist: clean
 	@echo creating dist tarball