aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 10 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index ccb9af7..74ef9ed 100644
--- a/Makefile
+++ b/Makefile
@@ -3,14 +3,12 @@
include config.mk
-WMSRC = bar.c client.c draw.c event.c kb.c mouse.c util.c wm.c
-WMOBJ = ${WMSRC:.c=.o}
-MENSRC = menu.c draw.c util.c
-MENOBJ = ${MENSRC:.c=.o}
-MAN1 = gridwm.1 gridmenu.1
-BIN = gridwm gridmenu
-
-all: config gridwm gridmenu
+SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c
+OBJ = ${SRC:.c=.o}
+MAN1 = gridwm.1
+BIN = gridwm
+
+all: config gridwm
@echo finished
config:
@@ -24,18 +22,14 @@ config:
@echo CC $<
@${CC} -c ${CFLAGS} $<
-${WMOBJ}: wm.h draw.h config.h util.h
-
-gridmenu: ${MENOBJ}
- @echo LD $@
- @${CC} -o $@ ${MENOBJ} ${LDFLAGS}
+${OBJ}: wm.h
-gridwm: ${WMOBJ}
+gridwm: ${OBJ}
@echo LD $@
- @${CC} -o $@ ${WMOBJ} ${LDFLAGS}
+ @${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
- rm -f gridwm gridmenu *.o core
+ rm -f gridwm *.o core
dist: clean
mkdir -p gridwm-${VERSION}
remember that computers suck.