posix makefile
authorConnor Lane Smith <cls@lubutu.com>
Wed, 1 Dec 2010 20:23:16 +0000 (20:23 +0000)
committerConnor Lane Smith <cls@lubutu.com>
Wed, 1 Dec 2010 20:23:16 +0000 (20:23 +0000)
Makefile

index c3934e7..c0e7856 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,15 +12,16 @@ options:
        @echo "CC       = ${CC}"
 
 dmenu: dmenu.o draw.o
-dmenu_path: dmenu_path.o
+       @echo CC -o $@
+       @${CC} -o $@ dmenu.o draw.o ${LDFLAGS}
 
 .c.o: config.mk
        @echo CC -c $<
        @${CC} -c $< ${CFLAGS}
 
-dmenu dmenu_path:
+.o:
        @echo CC -o $@
-       @${CC} -o $@ $+ ${LDFLAGS}
+       @${CC} -o $@ $< ${LDFLAGS}
 
 clean:
        @echo cleaning