# # Makefile.std for blwm # rewrite the definitions below to customize compile options # # -------------------------------------------------------------------------- # Customization of directories # # Directory of X Window System # XDIR = $(X11BASE) # # Directory where you install blwm binary # BINDIR = $(XDIR)/bin # # Directory where you install blwm manual # MANDIR = $(XDIR)/man/man$(MANSUFFIX) MANSUFFIX = n # # Directory of include files of X Window System # INCDIR = $(XDIR)/include # # Directory of library files of X Window System # LIBDIR = $(XDIR)/lib # # Directry where you install *.blwmrc # BLWMDIR = $(LIBDIR)/X11/blwm # # Directry where you install the images # IMGDIR = $(BLWMDIR)/images # # Directry where you install the configuration files # CONFDIR = $(BLWMDIR)/conf # # Directry where you install the themes # THEMEDIR = $(BLWMDIR)/themes # # Path for rm. # PATH_RM = /bin/rm # -------------------------------------------------------------------------- # Customization of compile and link # # C++ compiler # CXX = g++ #CXX = gcc # # Use locale support of X11 (for i18n) # #CXXDEFINES += -DX_LOCALE # # Use locale on FreeBSD. # To use locale properly on FreeBSD, uncomment the following lines. # #CXXDEFINES += -DNEED_XPG4 #XPG4_LIB = -lxpg4 # # Use shape extension. # If you cannot use shape extension, comment out the following line. # CXXDEFINES += -DUSE_SHAPE IMAGE_LIBS = -lXpm # # Use X session management protocol (XSMP). # If you cannot use shape extension, comment out the following line. # CXXDEFINES += -DUSE_XSMP # # If your system doesn't have usleep(), comment out the following line. # CXXDEFINES += -DHAVE_USLEEP # # If your system doesn't have vprintf(), comment out the following line. # CXXDEFINES += -DHAVE_VPRINTF # # Debug flag. # #CXXSTD_DEFINES += -DDEBUG # If you doesn't allow sending commands to blwm, undefine ALLOW_RMTCMD # #define ALLOW_RMTCMD # # # yacc and lex definitions # YACC = bison -y #YACC = yacc YFLAGS = -d LEX = flex #LEX = lex #LEXLIB = -lfl # # misc commands # INSTALL = install -c #INSTALL = cp MKDIRHIER = $(MKDIR) #MKDIRHIER = make -p MV = mv RM = rm -f # -------------------------------------------------------------------------- # do not edit below SUBDIRS = src images man rc themes MAKE = make MFLAGS = BINDIR=$(BINDIR) CONFDIR=$(CONFDIR) MANDIR=$(MANDIR) MANSUFFIX=$(MANSUFFIX) INCDIR=$(INCDIR) LIBDIR=$(LIBDIR) BLWMDIR=$(BLWMDIR) IMGDIR=$(IMGDIR) THEMEDIR=$(THEMEDIR) PATH_RM=$(PATH_RM) CXX="$(CXX)" CXXDEFINES="$(CXXDEFINES)" YACC="$(YACC)" YFLAGS="$(YFLAGS)" LEX="$(LEX)" LEXLIB="$(LEXLIB)" XPG4_LIB=$(XPG4_LIB) IMAGE_LIBS=$(IMAGE_LIBS) INSTALL="$(INSTALL)" MKDIRHIER="$(MKDIRHIER)" MV="$(MV)" RM="$(RM)" -f Makefile.std .PHONY: install all: @for flag in ${MAKEFLAGS} ''; do \ case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ for i in $(SUBDIRS) ;\ do \ echo "making" all "in ./$$i..."; \ (cd $$i && $(MAKE) $(MFLAGS) all); \ done depend: @for flag in ${MAKEFLAGS} ''; do \ case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ for i in $(SUBDIRS) ;\ do \ echo "depending" "in ./$$i..."; \ (cd $$i && $(MAKE) $(MFLAGS) depend); \ done install: @for flag in ${MAKEFLAGS} ''; do \ case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ for i in $(SUBDIRS) ;\ do \ echo "installing" "in ./$$i..."; \ (cd $$i && $(MAKE) $(MFLAGS) install); \ done clean: @for flag in ${MAKEFLAGS} ''; do \ case "$$flag" in *=*) ;; *[ik]*) set +e;; esac; done; \ for i in $(SUBDIRS) ;\ do \ echo "cleaning" "in ./$$i..."; \ (cd $$i && $(MAKE) $(MFLAGS) clean); \ done