aewl

diff Makefile @ 3:e969f3575b7a

several new changes, made gridmenu working
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 19:46:24 +0200
parents a79188fe4a40
children 991bd8b0771e
line diff
     1.1 --- a/Makefile	Mon Jul 10 18:35:39 2006 +0200
     1.2 +++ b/Makefile	Mon Jul 10 19:46:24 2006 +0200
     1.3 @@ -5,10 +5,12 @@
     1.4  
     1.5  WMSRC = wm.c draw.c util.c
     1.6  WMOBJ = ${WMSRC:.c=.o}
     1.7 +MENSRC = gridmenu.c draw.c util.c
     1.8 +MENOBJ = ${MENSRC:.c=.o}
     1.9  MAN = gridwm.1
    1.10  BIN = gridwm gridmenu     
    1.11  
    1.12 -all: config gridwm
    1.13 +all: config gridwm gridmenu
    1.14  	@echo finished
    1.15  
    1.16  config:
    1.17 @@ -22,18 +24,22 @@
    1.18  	@echo CC $<
    1.19  	@${CC} -c ${CFLAGS} $<
    1.20  
    1.21 -${WMOBJ}: wm.h draw.h config.h
    1.22 +${WMOBJ}: wm.h draw.h config.h util.h
    1.23 +
    1.24 +gridmenu: ${MENOBJ}
    1.25 +	@echo LD $@
    1.26 +	@${CC} -o $@ ${MENOBJ} ${LDFLAGS}
    1.27  
    1.28  gridwm: ${WMOBJ}
    1.29  	@echo LD $@
    1.30  	@${CC} -o $@ ${WMOBJ} ${LDFLAGS}
    1.31  
    1.32  clean:
    1.33 -	rm -f gridwm *.o
    1.34 +	rm -f gridwm gridmenu *.o core
    1.35  
    1.36  dist: clean
    1.37  	mkdir -p gridwm-${VERSION}
    1.38 -	cp -R Makefile README LICENSE config.mk ${WMSRC} ${MAN} gridwm-${VERSION}
    1.39 +	cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION}
    1.40  	tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
    1.41  	gzip gridwm-${VERSION}.tar
    1.42  	rm -rf gridwm-${VERSION}