From bf7b8e37ee2a53f0f1bed75dd84e5214269cfac8 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Fri, 8 Oct 2010 23:24:22 +0100 Subject: dmenu_path.c (shell is a bottleneck) --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1082697..c183779 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include config.mk -all: options dmenu +all: options dmenu dmenu_path options: @echo dmenu build options: @@ -11,22 +11,21 @@ options: @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" -dmenu.o: dmenu.c config.mk - @echo CC $< - @${CC} -c ${CFLAGS} $< +dmenu: dmenu.c config.mk +dmenu_path: dmenu_path.c -dmenu: dmenu.o +dmenu dmenu_path: @echo CC -o $@ - @${CC} -o $@ $+ ${LDFLAGS} + @${CC} -o $@ $< ${CFLAGS} ${LDFLAGS} clean: @echo cleaning - @rm -f dmenu dmenu.o dmenu-${VERSION}.tar.gz + @rm -f dmenu dmenu_path dmenu-${VERSION}.tar.gz dist: clean @echo creating dist tarball @mkdir -p dmenu-${VERSION} - @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path dmenu_run dmenu-${VERSION} + @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path.c dmenu_run dmenu-${VERSION} @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} @gzip dmenu-${VERSION}.tar @rm -rf dmenu-${VERSION} -- cgit v1.2.3-54-g00ecf