[hackers] [dmenu] fixed makefile || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Wed, 23 Jun 2010 13:29:38 +0000 (UTC)

changeset: 320:5fb4741fa436
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed Jun 23 14:29:32 2010 +0100
files: Makefile
description:
fixed makefile

diff -r 419700a90269 -r 5fb4741fa436 Makefile
--- a/Makefile Wed Jun 23 13:49:24 2010 +0100
+++ b/Makefile Wed Jun 23 14:29:32 2010 +0100
@@ -6,7 +6,7 @@
 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 @@
         @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
Received on Wed Jun 23 2010 - 13:29:38 UTC

This archive was generated by hypermail 2.2.0 : Wed Jun 23 2010 - 13:36:03 UTC