DFLAGS=-g -ggdb -DDEBUG DFLAGS=-DDEBUG_OPTIONAL OFLAGS=-O2 OFLAGS= GNOKII_LIB=/opt/er258/lib GNOKII_HEADER=/opt/er258/include LDFLAGS=$(OFLAGS) $(DFLAGS) -L$(GNOKII_LIB) -lgnokii -L /usr/X11R6/lib -lXpm -lbluetooth CXXFLAGS=$(DFLAGS) $(OFLAGS) -I$(GNOKII_HEADER) -Wall G=gnokiifs CXX=g++ CC=g++ LD=g++ DIST_APPEND= $G:$G.o $(LD) -a -o $G $G.o $(LDFLAGS) $(DFLAGS) $(OFLAGS) run: $G ./ufs html: #Colourize files for display on the WWW for i in *.cpp;\ do \ echo "Converting $$i to $${i}.html";\ vim -n -c ':so $$VIMRUNTIME/syntax/2html.vim' -c ':wqa' $$i > /dev/null 2>/dev/null ;\ done dist: #Exclude all vim swap files and all derived files #This prevents one having to make clean before a make dist. cd .. ; find `basename $(PWD)` -type f \( -name '*.cpp.html' -o -name gnokiifs -o -name '*.o' -o -name '.*.sw?' \) > $(PWD)/.exclude.sw. cd .. ; tar -cvf - -X `basename $(PWD)`/.exclude.sw. `basename $(PWD)` | gzip -9 > `basename $(PWD)`$(DIST_APPEND).tar.gz rm -f .exclude.sw. clean: rm -f *.o gnokiifs *.cpp.html