X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=7274923b3295e702d1886b6e4a55fdb5c6c75465;hb=855a56631916bdff1438e11c232b88450f973648;hp=90f178b44e907d8d05685954e78ba618cbb1ff86;hpb=4508fd2c4ee3171bdc1bffb7e53ecda8290292ef;p=dmenu.git diff --git a/Makefile b/Makefile index 90f178b..7274923 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include config.mk -SRC = dinput.c dmenu.c +SRC = dinput.c dmenu.c common.c OBJ = ${SRC:.c=.o} all: options dinput dmenu @@ -18,28 +18,28 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.h config.mk draw/libdraw.a +${OBJ}: config.h config.mk config.h: @echo creating $@ from config.def.h @cp config.def.h $@ -.o: +dinput: dinput.o common.o @echo CC -o $@ - @${CC} -o $@ $< ${LDFLAGS} + @${CC} -o $@ $+ ${LDFLAGS} -draw/libdraw.a: - @cd draw && make +dmenu: dmenu.o common.o + @echo CC -o $@ + @${CC} -o $@ $+ ${LDFLAGS} clean: @echo cleaning @rm -f dinput dmenu ${OBJ} dmenu-${VERSION}.tar.gz - @cd draw && make clean dist: clean @echo creating dist tarball @mkdir -p dmenu-${VERSION} - @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run draw ${SRC} dmenu-${VERSION} + @cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION} @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} @gzip dmenu-${VERSION}.tar @rm -rf dmenu-${VERSION}