diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | include config.mk | 4 | include config.mk |
5 | 5 | ||
6 | all: options dmenu dmenu_path | 6 | all: options dmenu dmenu_path config.mk |
7 | 7 | ||
8 | options: | 8 | options: |
9 | @echo dmenu build options: | 9 | @echo dmenu build options: |
@@ -11,16 +11,20 @@ options: | |||
11 | @echo "LDFLAGS = ${LDFLAGS}" | 11 | @echo "LDFLAGS = ${LDFLAGS}" |
12 | @echo "CC = ${CC}" | 12 | @echo "CC = ${CC}" |
13 | 13 | ||
14 | dmenu: dmenu.c config.mk | 14 | dmenu: dmenu.o draw.o |
15 | dmenu_path: dmenu_path.c | 15 | dmenu_path: dmenu_path.o |
16 | |||
17 | .c.o: | ||
18 | @echo CC -c $< | ||
19 | @${CC} -c $< ${CFLAGS} | ||
16 | 20 | ||
17 | dmenu dmenu_path: | 21 | dmenu dmenu_path: |
18 | @echo CC -o $@ | 22 | @echo CC -o $@ |
19 | @${CC} -o $@ $< ${CFLAGS} ${LDFLAGS} | 23 | @${CC} -o $@ $+ ${LDFLAGS} |
20 | 24 | ||
21 | clean: | 25 | clean: |
22 | @echo cleaning | 26 | @echo cleaning |
23 | @rm -f dmenu dmenu_path dmenu-${VERSION}.tar.gz | 27 | @rm -f dmenu dmenu.o draw.o dmenu_path dmenu_path.o dmenu-${VERSION}.tar.gz |
24 | 28 | ||
25 | dist: clean | 29 | dist: clean |
26 | @echo creating dist tarball | 30 | @echo creating dist tarball |