"Fossies" - the Fresh Open Source Software Archive

Member "bed-3.1.1/src/Makefile" (20 May 2021, 15760 Bytes) of package /linux/misc/bed-3.1.1.src.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 3.1.0_vs_3.1.1.

    1 include ../config
    2 include rules.mk
    3 ifeq ($(PDCURSES)$(CYGWIN),1yes2)
    4 WINPD=y
    5 endif
    6 LIBS+= $(CURSESLIB) $(EXTRALIBS) $(OTHERLIBS)# -L/mnt/chicken/lib -L/mnt/chicken/usr/lib
    7 CFLAGS+=  -D_GNU_SOURCE -DNEWTERM #-DUSE_NEW # -DMEMORY_TRACE	#-DREAD0x2x4DATATYPE #-DSEARCHTIME #-DUSE_NEW #-DMEMORY_TRACE	
    8 CXXFLAGS+=  -D_GNU_SOURCE -DNEWTERM #-DUSE_NEW # -DMEMORY_TRACE	#-DREAD0x2x4DATATYPE #-DSEARCHTIME #-DUSE_NEW #-DMEMORY_TRACE	
    9 
   10 OPTS:= $(OPTS) 
   11 LIBPATH=-L. 
   12 INLINKLISTER= ../plugins/examples/inlinklist
   13 INLINKLIST= compileinlink
   14 MKINLINK_H=mkinlink_h
   15 ININLINKLIB= $(patsubst %,../plugins/examples/%,$(shell cat $(INLINKLISTER) ))
   16 #CLEANOBJECTS=$(OBJECTS)
   17 OBJECTS+=$(ININLINKLIB)
   18 PROGCC=$(GXX)
   19 ifeq ($(CYGWIN),yes)
   20 SORT=/usr/bin/sort 
   21 else
   22 SORT:=sort 
   23 endif
   24 CP=cp -f -b
   25 SHELL:=bash
   26 BIN2BYTE:= ../utils/bin2byte
   27 MV=mv
   28 
   29 #CFLAGS:= -Wall $(CFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   30 #CFLAGS:=  -Wno-deprecated  $(CFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   31 #CFLAGS:= -Wunused  -Wunused-value  -funsigned-char  $(CFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   32 #CFLAGS:= -Wall    -funsigned-char  $(CFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   33 CFLAGS:= -Wall     $(CFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   34 CXXFLAGS:= -Wall     $(CXXFLAGS) -DSETSCRREGBUG # -DALWAYSEXPLORESIZE 
   35 ifeq ($(SYSTEM),Linux)
   36 #CFLAGS+= -DPROCLOCKSBUG  -DATOIBUG
   37 #CFLAGS+= -DPROCLOCKSBUG  -DATOIBUG
   38 endif
   39 
   40 #-DENDOFLINEBUG
   41 OLDCFLAGS:=$(CFLAGS)
   42 CFLAGS +=$(OPTS) $(PROGRAMC)
   43 
   44 PCXXFLAGS:=$(CXXFLAGS) $(PROGRAMC)
   45 CXXFLAGS +=$(OPTS) $(PROGRAMC)
   46 
   47 
   48 LDFLAGS:=$(OPTS) $(LDFLAGS) $(PROGRAMLD)
   49 WCXXFLAGS=$(CXXFLAGS)
   50 # *** NORMALLY NOTHING HAS TO BE CHANGED BELOW THIS LINE
   51 
   52 OBJ := repeat.o rbtree.o memory.o editor.o   dialog.o glob.o expandfilename.o readconfig.o  getfree.o getlabel.o  screenpart.o  marks.o digitstring.o   parts.o main.o    keyproc.o marken.o procview.o menus.o inout.o move.o window.o edit.o file.o suspend.o select.o undo.o screen.o search.o onlykey.o  editup.o  cursesinit.o input.o contain.o withcontain.o filter.o  ascii.o  multidigit.o macros.o editmacros.o typelist.o $(OBJ) keyinput.o  hassub.o savedatatype.o menufuncs.o support.o desturbe.o gethelp.o disk.o   memed.o  gnusearch.o unitsearch.o bytesearch.o  gnuasciiregex.o showlist.o  times.o sparsecp.o winsparsecp.o
   53 
   54 ifeq ($(USE_HYPERSCAN),1)
   55 OBJ +=hyperscan.o 
   56 endif
   57 
   58 ifeq ($(USE_RE2),1)
   59 OBJ += re2search.o  
   60 endif
   61 BUILDOBJ := hostreadhelp.o hostgetlabel.o
   62 
   63 ifeq ($(SYSTEM),FreeBSD)
   64 OBJ+=prevention.o
   65 endif
   66 
   67 ifneq ($(WINPD),y)
   68 OBJ+=keyconfig.o 
   69 endif
   70 CPPFILES=  debug.cpp editlimits.cpp editor.cpp dialog.cpp getfree.cpp getlabel.cpp digitstring.cpp main.cpp marks.cpp memory.cpp  parts.cpp rbtree.cpp readconfig.cpp screenpart.cpp  trace.cpp keyproc.cpp marken.cpp procview.cpp menus.cpp inout.cpp move.cpp window.cpp edit.cpp file.cpp suspend.cpp select.cpp undo.cpp screen.cpp search.cpp onlykey.cpp editup.cpp myalloc.cpp cursesinit.cpp input.cpp contain.cpp withcontain.cpp filter.cpp  ascii.cpp  multidigit.cpp macros.cpp editmacros.cpp typelist.cc keyconfig.cpp keyinput.cpp repeat.cpp hassub.cpp savedatatype.cpp menufuncs.cpp  support.cpp bedrcproc.cpp desturbe.cpp gethelp.cpp disk.cpp memed.cpp re2search.cpp hyperscan.cpp gnusearch.cpp unitsearch.cpp bytesearch.cpp gnuasciiregex.cpp times.cpp sparsecp.cpp winsparsecp.cpp
   71 
   72 
   73 
   74 
   75 
   76 CFILES=expandfilename.cpp glob.c 
   77 
   78 ifeq ($(SYSTEM),FreeBSD)
   79 CFILES+=prevention.c 
   80 endif
   81 PRESRC=$(CFILES) $(CPPFILES)
   82 SRC=$(PRESRC) version.cpp
   83 GENHEADERS= procedures.h copy.h help.h bedrcproc.h
   84 
   85 #HANDHEADERS= builtinkeys.h  config.h convert.h cursesinit.h datatypes.h debug.h editor.h dialog.h getlabel.h glob.h head.h digitstring.h inout.h keyinput.h keylist.h main.h marks.h memory.h myalloc.h offtypes.h onlykey.h  rbtree.h readconfig.h screen.h screenpart.h system.h trace.h type.h views.h trace.cpp menu.h multidigit.h ascii.h  contain.h  filter.h  reverse.h macros.h keystrokes.h typelist.h visuals.h keyproc.h repeat.h hassub.h varmacro.h execproc.h desturbe.h shell.h termkeys.h viewbuf.h
   86 
   87 
   88 HANDHEADERS= ascii.h biosdisk.h builtinkeys.h confdefines.h conf-.h config.h contain.h convert.h cursesinit.h dataprocer.h dataproc.h datatypes.h debug.h defines.h definesonly.h desturbe.h dialog.h digitstring.h editor.h execproc.h extrakeys.h filter.h getlabel.h glob.h hash.h hassub.h head.h helpdata.h help.h helpindex.h helptext.h inout.h keyinput.h keylist.h keyproc.h keystrokes.h macros.h main.h mainprocedures.h marks.h maxmenus.h memory.h menu.h misc.h mkmenus.h multidigit.h myalloc.h nepsem.h offtypes.h onlykey.h partypes.h  procedures.h ptypes.h rbtree.h readconfig.h regclass.h repeat.h reverse.h screen.h screenpart.h searchaim.h searchinterrupt.h selectsearch.h setenv.h shell.h system.h sys_types.h termkeys.h trace.h type.h typelist.h unsorted.h varmacro.h viewbuf.h views.h visuals.h win.h winpad.h
   89 
   90 
   91 
   92 HEADERS= $(HANDHEADERS) $(GENHEADERS)
   93 OTHERGEN= help
   94 OTHERHAND= preprocedures head.h copy
   95 OTHERFILES= $(OTHERHAND)  $(OTHERGEN)
   96 OLDFILES= oldundo.cpp
   97 SCRIPTS=mkdate.sh mkmachine.sh rules.mk
   98 UPDATES=sourcenumber date.c md5sums.cpp
   99 GENERATED= $(GENHEADERS) $(OTHERGEN)  md5file  md5file  mainprocedures.h extrakeys.h helpdata helpdata.h helpindex.h helptext.h chhelp unsorted.h 
  100 PROGRAMS=extramenunr rxvtmenu  readhelp addmenu
  101 
  102 ifeq ($(BUILDEXEEXT),)
  103 EXEPROGRAMS= $(PROGRAMS)
  104 else
  105 ifeq ($(CYGWIN),)
  106 EXEPROGRAMS= $(patsubst %,%$(BUILDEXEEXT),$(PROGRAMS)) 
  107 else
  108 EXEPROGRAMS= $(patsubst %,%$(BUILDEXEEXT),$(PROGRAMS)) winpaden$(BUILDEXEXT)
  109 endif
  110 endif
  111 
  112 ifneq ($(origin USE_NEW),undefined)
  113 OBJ := $(OBJ) myalloc.o
  114 endif
  115 
  116 
  117 ALLEXCEPTVERSION=$(SRC) $(HANDHEADERS) $(OTHERHAND) $(SCRIPTS)
  118 
  119 ALLSOURCES=$(ALLEXCEPTVERSION) $(UPDATED)
  120 ALLES= $(ALLSOURCES) $(CONFFILE) $(GENERATED)
  121 
  122 all: mkinlinklist plugnum procedures.h $(PROGRAM)
  123 	@echo done
  124 
  125 .PHONY: plugnum 
  126 
  127 plugnum:
  128 	make -C ../plugins/examples/ srcnum
  129 bash:
  130 	bash
  131 tags: $(CFILES) $(CPPFILES) Makefile
  132 	ctags    $(CFILES) $(CPPFILES) $(HEADERS)
  133 #	ctags  --sort  --c-types=cdefgmnstuvxAC $(CFILES) $(CPPFILES)
  134 
  135 
  136 
  137 .PHONY: back
  138 back: bak $(ALLES)
  139 	cp $(ALLES) bak
  140 bak:
  141 	mkdir bak
  142 
  143 $(INLINKLISTER):
  144 	$(MAKE) -C ../plugins/examples makeinlinklist
  145 
  146 #PROGCC=$(CXX)
  147 
  148 .PHONY: src
  149 
  150 
  151 src:
  152 	@echo $(ALLES)
  153 
  154 ifeq ($(CYGWIN),yes)
  155 dep: winpad.h $(PRESRC) ../config Makefile extrakeys.h dataprocer.h dataproc.h procedures.h mainprocedures.h readhelp.cpp  
  156 else
  157 dep:  $(PRESRC) ../config Makefile extrakeys.h dataprocer.h dataproc.h procedures.h mainprocedures.h readhelp.cpp  
  158 endif
  159 	$(MAKE) -C ../plugins/examples makeinlinklist
  160 	$(PROGCC) -MM -MG $(WCXXFLAGS) $(CFILE) $(CPPFILES) readhelp.cpp > depend
  161 
  162 winpad.h: 
  163 	./winpaden > winpad.h
  164 empty:
  165 	@echo done
  166 KEYCONFIG= ../utils/keyconfig
  167 
  168 keyconfig:$(KEYCONFIG)
  169 
  170 $(KEYCONFIG): bed	
  171 	-rm $(KEYCONFIG)
  172 	ln $(PROGRAM) $(KEYCONFIG)
  173 
  174 #PROGCC=gcc
  175 
  176 showconfig:
  177 ifeq ($(BIOSDISK),y)
  178 	@echo  "BIOSDISK " $(CYGWINDLL)
  179 endif
  180 ifeq ($(CONFIG_THREADS),y)
  181 	@echo  "Background search "
  182 endif
  183 ifeq ($(CONFIG_PLUGIN),y)
  184 	@echo  "Plugins "
  185 else
  186 	@echo  "No Plugins "
  187 endif
  188 
  189 $(PROGRAM):   $(OBJ)  version.o  $(OBJECTS)  
  190 	$(PROGCC)   $(LDFLAGS) $(RDYNAMIC) -o $(PROGRAM)  version.o $(OBJ) $(OBJECTS) $(LIBPATH) $(LIBS)
  191 ifeq ($(SYSTEM),Android)
  192 #	 perl -pi -e 's/libc\+\+_shared.so/libc++.so\000\000\000\000\000\000\000/g'  bed
  193 endif
  194 
  195 quick:  $(OBJ)  sourcenumber
  196 	$(PROGCC) $(LDFLAGS) -o $(PROGRAM)  version.o $(OBJ)  $(OBJECTS) $(LIBPATH) $(LIBS)
  197 #sourcenumber: $(SRC)  $(BIN2BYTE)
  198 #	bash ./mkversion $(ALLEXCEPTVERSION)
  199 #md5file: $(SRC)  $(BIN2BYTE)
  200 #	bash ./mkversion $(ALLEXCEPTVERSION)
  201 
  202 link:  dataprocer.h menufuncs.o procview.o menus.o  $(INLINKLIST) $(ININLINKLIB) 
  203 	$(PROGCC) $(LDFLAGS) -o $(PROGRAM)  version.o $(OBJ)  $(OBJECTS) $(LIBPATH) $(LIBS)
  204 linkonly:   
  205 	$(PROGCC)  $(LDFLAGS) -o $(PROGRAM)  version.o $(OBJ)  $(OBJECTS) $(LIBPATH)  $(LIBS)
  206 
  207 lines: 
  208 	-rm screenpart.o editup.o editor.o
  209 	$(MAKE) bed
  210 $(BIN2BYTE):
  211 	$(MAKE) -C ../utils bin2byte
  212 unsorted.h: preprocedures  dataproc.h ../config
  213 	 $(PROGCC) -DNOINLINK $(PCXXFLAGS) -x c++   -E -P  $<  -o unsorted.h
  214 
  215 mainprocedures.h: unsorted.h
  216 	$(SORT) -b -t '(' -k 2 unsorted.h -o  $@
  217 
  218 showproc: preprocedures  ../plugins/examples/inlink.h dataproc.h ../config
  219 	echo 	 $(PROGCC) $(PCXXFLAGS) -x c++   -E -P  $<  
  220 procedures.h: preprocedures  ../plugins/examples/inlink.h dataproc.h ../config
  221 	echo 	 $(PROGCC) $(PCXXFLAGS) -x c++   -E -P  $<  
  222 	 $(PROGCC) $(PCXXFLAGS) -x c++   -E -P  $<  | $(SORT) -b -t '(' -k 2 > newprocedures.h
  223 	(diff -q procedures.h newprocedures.h	&& echo no change &&rm newprocedures.h)||mv newprocedures.h procedures.h
  224 	
  225 help: usagehelp.in helpoldterm.c Makefile ../config cygwinhelp helptext
  226 	cat usagehelp.in >  help
  227 #	$(PROGCC)   $(CFLAGS) -x c++ -E -P usagehelp.in|sed -e s/\"//g > help
  228 	echo '-f bedrc: Use configuration file bedrc, instead of env $(CONFVAR)' >>help
  229 ifneq ($(CYGWIN),yes)
  230 	echo '   or $(PERSCONFFILE) or $(GLOBALCONFFILE)' >>help
  231 else
  232 	echo -n '   or %APPDATA%\$(CONFFILE) or ' >>help
  233 	cygpath -w $(GLOBALCONFFILE) >> help
  234 endif
  235 #	echo '-w: Always test filesize' >>help
  236 ifeq ($(CONFIG_PLUGIN),y)
  237 	echo	'-p plugin: load plugin at startup' >> help
  238 endif
  239 ifneq ($(WINPD),y)
  240 	echo '-k file: Configure key bindings for current terminal. Append to file.' >> help
  241 endif
  242 ifeq ($(CONFIG_COLOR),y)
  243 	echo '-B: black-white' >>help
  244 	echo '-C: color' >>help
  245 else
  246 ifeq ($(CONFIG_COLOR),o)
  247 	echo '-C: color' >>help
  248 endif
  249 endif
  250 ifneq ($(filter -DNEWTERM,$(CFLAGS)),-DNEWTERM)
  251 	$(PROGCC)   -imacros config.h $(CFLAGS) -E -P helpoldterm.c >> help
  252 endif
  253 ifeq ($(CYGWIN),yes)
  254 	cat cygwinhelp >> help
  255 endif
  256 	cat helptext >> help
  257 
  258 help.h:help $(BIN2BYTE)
  259 	$(BIN2BYTE) help help help.h
  260 	echo >> help.h
  261 copy.h:copy $(BIN2BYTE)
  262 	$(BIN2BYTE) copy copy copy.h
  263 	echo >> copy.h
  264 compileinfo:../config Makefile rules.mk
  265 	echo -e  CXXFLAGS=$(CXXFLAGS)\\nCFLAGS=$(CFLAGS)\\nLDFLAGS=$(LDFLAGS)\\nLIBS=$(LIBS)\\n > compileinfo
  266 definesonly.h: confdefines.h $(HOSTCONF)
  267 	cat $^|grep '^#define'  > definesonly.h
  268 md5sums.cpp:  machine   compileinfo  definesonly.h $(BIN2BYTE)
  269 #	cat machine compileinfo md5file> compinfo
  270 	cat machine compileinfo definesonly.h > compinfo
  271 	 $(BIN2BYTE) compinfo md5sums md5sums.cpp
  272 	echo >> md5sums.cpp
  273 
  274 #	 $(BIN2BYTE) md5file md5sums md5sums.cpp
  275 
  276 #version.o:  version.cpp sourcenumber md5sums.cpp help.h copy.h
  277 
  278 #	$(PROGCC) $(CFLAGS) -c version.cpp
  279 
  280 
  281 
  282 #menus.o: menus.cpp
  283 #	g++  -O2   $(OLDCFLAGS)  -c -o menus.o menus.cpp
  284 
  285 debug:
  286 	-rm main.o trace.o debug.o editor.o myalloc.o
  287 	$(MAKE)
  288 mmap:
  289 	-rm memory.o
  290 	$(MAKE)
  291 clean: 
  292 	-rm    $(OBJ) version.o core  debug.o trace.o myalloc.o inlink.a  depend.bak $(CLEANOBJECTS)   $(BUILDOBJ)
  293 	-rm $(EXEPROGRAMS) $(PROGRAM)$(HOSTEXEEXT)
  294 	
  295 #	-rm rxvtmenu $(PROGRAM) core  inlink.a *.o*
  296 realclean: clean
  297 	-rm $(REGEX_DIR)/regex.o
  298 	-rm $(GENERATED) 
  299 	-rm md5sums.cpp #tags 
  300 	-rm depend
  301 
  302 machine: sourcenumber
  303 	bash ./mkmachine.sh
  304 
  305 date.c:  sourcenumber
  306 	bash ./mkdate.sh
  307 version.o: version.cpp sourcenumber md5sums.cpp copy.h help.h  date.c  ../config config.h
  308 	$(PROGCC) $(CFLAGS) -c $<
  309 
  310 digitstring: digitstring.cpp
  311 	$(CXX) -g digitstring.cpp -DTEST -o digitstring 
  312 getfree: getfree.cpp
  313 	$(CXX) $(CXXFLAGS) getfree.cpp -DTEST -o getfree 
  314 
  315 
  316 #%.o:%.i
  317 
  318 #	$(PROGCC)  $(CXXFLAGS) $< -o $@
  319 %.i:%.cpp
  320 	$(PROGCC) -E -P $(CXXFLAGS) $< -o $@
  321 #	$(GCC) -E  $(CPPFLAGS) $< -o $@
  322 %.s:%.cpp
  323 	$(PROGCC) -S  $(CXXFLAGS) $< -o $@
  324 %.i:%.c
  325 	$(PROGCC) -E -P $(CFLAGS) $< -o $@
  326 
  327 
  328 stupid: inlink.h
  329 	touch stupid
  330 .PHONY: mkinlinklist plugs  mkinlink_h
  331 
  332 mkinlink_h:
  333 	$(MAKE) -C ../plugins/examples/ mkinlink_h
  334 mkinlinklist:
  335 	$(MAKE) -C ../plugins/examples/ $(INLINKLIST)
  336 #	$(MAKE) -C ../plugins/examples/ $(@F)
  337 	
  338 #plugs:
  339 #	for plug in $(ININLINKLIB); do \
  340 #	$(MAKE) -C ../plugins/examples/ $(@F); \
  341 #	done
  342 
  343 plugs:	$(ININLINKLIB)
  344 ../plugins/examples/%: 
  345 	$(MAKE) -C ../plugins/examples/ $(@F)
  346 ../plugins/examples/inlink.h: 
  347 	$(MAKE) -C ../plugins/examples/ inlink.h
  348 
  349 $(ININLINKLIB):
  350 	$(MAKE) -C ../plugins/examples/ $(@F)
  351 
  352 grep.%:
  353 	grep $* *.c* *.h
  354 
  355 include dataproc.mk
  356 
  357 
  358 getch:getch.c 
  359 	$(GCC) -g $(CFLAGS) -UHAS_BOOL getch.c -o getch $(LIBS)
  360 getcher:getcher.c 
  361 	$(GCC) -g $(CFLAGS) -UHAS_BOOL getcher.c -o getcher $(LIBS)
  362 
  363 
  364 #memory.o:memory.i
  365 #	$(GCC) -c $(CFLAGS) -x c++ memory.i
  366 
  367 
  368 support: support.cpp expandfilename.cpp
  369 	$(CC) -g -DTEST $^ -o support
  370 
  371 keyproc.o: builtinkeys.h
  372 keyproc.o: extrakeys.h
  373 readconfig.o:bedrcproc.h
  374 readconfig:readconfig.o
  375 	$(PROGCC) $(LDFLAGS) -o readconfig readconfig.o -lpdcurses
  376 bedrcproc.h: bedrcproc.cpp
  377 	echo '/*WARNING automatically generated  from bedrcproc.cpp */' > bedrcproc.h
  378 	grep '^initword' bedrcproc.cpp|sed -e 's/^initword\([^{]*\).*/initword\1/'|$(SORT) -b -t '(' -k 2 >> bedrcproc.h
  379 
  380 extramenunr$(BUILDEXEEXT):menus.cpp editor.h menu.h
  381 	$(TOBUILDCXX) -DPRINTMAXSHOWMENUS=1 $(TOBUILDCXXFLAGS) extramenunr.cpp -o extramenunr
  382 extramenunr.i:menus.cpp editor.h menu.h
  383 	$(TOBUILDCXX) -E -P -DPRINTMAXSHOWMENUS=1 $(TOBUILDCXXFLAGS) extramenunr.cpp -o extramenunr.i
  384 mkmenus.h: extramenunr$(BUILDEXEEXT)
  385 #	extramenus=`./extramenunr`; for ((i=0;$$i<$$extramenus;i=$$[$$i+1])); do echo  "mkmenunum($$i)";done >mkmenus.h
  386 	extramenus=`./extramenunr`;i=0; while test $$i -lt $$extramenus; do echo  "mkmenunum($$i)";i=$$[$$i+1];done >mkmenus.h
  387 #	havemenus=`gcc -E -P '-Dmenumake(x...)=xoneitem' menu.h|grep xoneitem|wc -w`; for ((i=0;$$i<$$[30-$$havemenus];i=$$[$$i+1])); do echo  "mkmenunum($$i)";done >mkmenus.h
  388 -include depend	
  389 
  390 exes:
  391 	echo $(EXEPROGRAMS)
  392 
  393 Bed:   
  394 	$(PROGCC) $(LDFLAGS) -o Bed  version.o $(OBJ)  $(OBJECTS)  $(ININLINKLIB) $(LIBPATH) /home/jka/self/projects/c/bedall/libs/libc.so.6 /home/jka/self/projects/c/bedall/libs/libpthread.so.0 /home/jka/self/projects/c/bedall/libs/libdl.so.2  /home/jka/self/projects/c/bedall/libs/libm.so.6  /home/jka/self/projects/c/bedall/libs/libncurses.so.4   /home/jka/self/projects/c/bedall/libs/ld-linux.so.2
  395 
  396 
  397 beds:   
  398 	$(PROGCC) $(LDFLAGS) -o $(PROGRAM)s  version.o $(OBJ) $(OBJECTS) $(LIBPATH) $(LIBS) -L/usr/X11R6/lib -lX11
  399 
  400 hostreadhelp.o: readhelp.cpp procedures.h 
  401 	$(TOBUILDCXX) -c $(TOBUILDCXXFLAGS) readhelp.cpp  -o hostreadhelp.o
  402 hostgetlabel.o: getlabel.cpp 
  403 	$(TOBUILDCXX) -c $(TOBUILDCXXFLAGS) getlabel.cpp  -o hostgetlabel.o
  404 
  405 readhelp: hostreadhelp.o hostgetlabel.o 
  406 	$(TOBUILDCXX)  $(TOBUILDLDFLAGS) hostreadhelp.o hostgetlabel.o -o readhelp
  407 helpdata.h: helpdata readhelp
  408 	./readhelp < helpdata
  409 helptext.h: helpdata.h
  410 #	./readhelp < helpdata
  411 helpindex.h: helpdata.h
  412 #	./readhelp < helpdata
  413 
  414 ifeq ($(CYGWIN),yes)
  415 helpdata: helpdata.in helpdiskwindows chhelp #../plugins/examples/plughelp
  416 	cat helpdata.in helpdiskwindows ../plugins/examples/plughelp|sed -f chhelp  > helpdata
  417 else
  418 helpdata: helpdata.in helpdisklinux chhelp #../plugins/examples/plughelp
  419 	cat helpdata.in helpdisklinux ../plugins/examples/plughelp|sed -f chhelp  > helpdata
  420 endif
  421 
  422 
  423 .PHONY: ../plugins/examples/plughelp
  424 ../plugins/examples/plughelp:
  425 	$(MAKE) -C ../plugins/examples/ plughelp
  426 chhelp: addmenu
  427 	./addmenu > chhelp
  428 	echo 's/proconly \(\<[^         ]*\>\)/\1/g' >> chhelp
  429 addmenu: addmenu.cpp menu.h
  430 	$(TOBUILDCXX) addmenu.cpp -o addmenu
  431 
  432 showopts:
  433 	echo OPTS: $(OPTS)
  434 	echo CFLAGS: $(CFLAGS)
  435 	echo CXXFLAGS: $(CXXFLAGS)
  436 	echo LDFLAGS: $(LDFLAGS)
  437 
  438 inin:../plugins/examples/inlinklist showargs
  439 	echo $(ININLINKLIB)
  440 .PHONY: showargs
  441 showargs:
  442 	@echo obj: $(OBJ)
  443 	@echo objects: $(OBJECTS) 
  444 	@echo libpath $(LIBPATH)
  445 	@echo libs: $(LIBS)
  446 
  447 
  448 
  449 
  450 #sourcenumber: $(SRC)  
  451 #	bash ./mkversion $(ALLEXCEPTVERSION)
  452 sourcenumber: $(ALLEXCEPTVERSION)  Makefile ../plugins/examples/srcnum
  453 	bash ../plugins/examples/mksrcnum.sh sourcenumber
  454 #	bash ./mkversion
  455 made:
  456 	@echo $(ALLEXCEPTVERSION)
  457 
  458 partypes.h: mkpartypes
  459 	./mkpartypes > partypes.h
  460 
  461 
  462 
  463 
  464 other:
  465 	echo $(OTHERLIBS)
  466 
  467 libtest.a: $(OBJ) $(OBJECTS) version.o 
  468 	ar rc libtest.a $^
  469 rbtest: rbtree.cpp
  470 	$(CXX) -DXViewer -DTEST $(CXXFLAGS) $(LDFLAGS) $^ -o $@ 
  471 testmem:memory.o rbtree.o $(REGEX_DIR)/regex.o  libtest.a
  472 	$(CXX) $(LDFLAGS) $^ -o $@ -L. $(LIBS) -ltest