From a0a99d10e1a019f74a8b2af4d5f8b47348e08a75 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Thu, 11 Nov 2010 23:56:39 +0000 Subject: removed libdc dependence --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3