"Fossies" - the Fresh Open Source Software Archive

Member "bed-3.1.1/config" (20 May 2021, 9980 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 "config": 3.1.0_vs_3.1.1.

    1 #config.  Generated from config.in by configure.
    2 ifneq ($(INCLUDEDCONFIG),yes)
    3 
    4 PROGRAMC=
    5 PROGRAMLD=
    6 CPPFLAGS=
    7 GXXVERSION=c++20
    8 
    9 CFLAGS=$(CPPFLAGS) -g -O2 
   10 CXXFLAGS=$(CPPFLAGS) -static -std=$(GXXVERSION)
   11 LDFLAGS= -static #-std=$(GXXVERSION)
   12 
   13 CFLAGS+= -Wall   #-Wno-write-strings -Wno-char-subscripts
   14 CXXFLAGS+= -Wall   #-Wno-write-strings -Wno-char-subscripts
   15 LDFLAGS+= 
   16 EXTRALIBS=
   17 OTHERLIBS=
   18 export GNUSTRIP=yes
   19 
   20 ifeq ($(BEDSRCDIR),)
   21 export BEDSRCDIR=/home/jka/src/bed-3.1.1
   22 endif
   23 REGEX_DIR=$(BEDSRCDIR)/regex-0.13
   24 #include $(BEDSRCDIR)/prognames.mk
   25 INCLUDEDCONFIG=yes
   26 export LC_ALL=POSIX
   27 # test,sed,sort,grep etc should produce exactly the intented output.
   28 # Data access don't work anymore if e.g. sort order is changed
   29 # and some idiot made sort (Mandrake 7.2) produce different sort order
   30 # depending on locale. try
   31 #LC_ALL=nl sort
   32 #aA
   33 #AB
   34 export MAN2HTML=../man2html/man2html
   35 #export LOWVERSION=@LOWVERSION@
   36 #export MIDVERSION=@MIDVERSION@
   37 #export UPVERSION=@UPVERSION@
   38 export VERSION=3.1.1
   39 export PROGRAM=bed
   40 SYSTEM=
   41 export WINDOWS=yes
   42 export HOST_CPU=x86_64
   43 export HOST_OS=mingw32
   44 HOSTCONF=conf-.h
   45 HOST_ALIAS=
   46 export HOSTEXEEXT=.exe
   47 export EXEEXT=$(HOSTEXEEXT)
   48 include $(BEDSRCDIR)/build
   49 
   50 CYGWIN=no
   51 
   52 HAVE_MAGIC_H=0
   53 export HAS_RE_SEARCH=n
   54 export CONFFILE=$(PROGRAM)rc
   55 export CONFLASTDIR=$(PROGRAM)-$(VERSION)
   56 export ROOTDIR=
   57 HAS_APPLICATIONS=
   58 LN_S=cp -pR
   59 HAVE_LN_R=y
   60 # compile support for the use of plugins. Needs libdl
   61 # if CONFIG_PLUGIN=n then GIVE=.. in plugin/examples/Makefile determines
   62 # which plugins are linked in instead
   63 DL_LIBRARY=
   64 CONFIG_PLUGIN=n
   65 USE_RE2=1
   66 ifeq ($(USE_RE2),1)
   67 CFLAGS+=-DUSE_RE2=1
   68 CXXFLAGS+=-DUSE_RE2=1
   69 EXTRALIBS+=-lre2   
   70 
   71 endif
   72 USE_HYPERSCAN=
   73 ifeq ($(USE_HYPERSCAN),1)
   74 CFLAGS+=-DUSE_HYPERSCAN=1
   75 CXXFLAGS+=-DUSE_HYPERSCAN=1
   76 EXTRALIBS+=
   77 endif
   78 
   79 ifneq ($(HAS_RE_SEARCH),y) 
   80 OBJECTS=$(REGEX_DIR)/regex.o
   81 endif
   82 
   83 DYNAMICCURSES=
   84 STATICCURSES=
   85 CURSESLIB=-lpdcurses
   86 
   87 CFLAGS+=-DCURSESTYPE=pdcurses -DCURSES=1
   88 CXXFLAGS+=-DCURSESTYPE=pdcurses -DCURSES=1
   89 
   90 # user threads to go on while making a searchlist. 
   91 # Adds instability, but is also the most widely used. 
   92 # Not tried with win95 requires ReadFile with offset in OVERLAPPED 
   93 CONFIG_THREADS=y
   94 THREADSLIB=
   95 ifneq ($(WINDOWS),yes)
   96 # The user of the program is unix minded
   97 FULLUNIX=y
   98 else
   99 CFLAGS+=-D_WIN32=1 -DWindows=1 -DUSE_WINFILE
  100 CXXFLAGS+=-D_WIN32=1 -DWindows=1 -DUSE_WINFILE
  101 FULLUNIX=n
  102 CONFIG_PLUGIN=n
  103 #export BIOSDISK=y
  104 #set to y if you want to to use raw disk edit under win95/98/ME 
  105 CYGWINDLL=
  106 # >= 1007 no support for Windows 95/98/ME anymore so
  107 		      #	shouldn't be defined  -DBIOSDISK  -DRUNONWIN95=1
  108 
  109 ifeq ($(shell if test 0$(CYGWINDLL) -ge 01007;then echo nowin95;else echo win95 ;fi),nowin95)
  110 export BIOSDISK=n
  111 endif
  112 ifeq ($(BIOSDISK),y)
  113 CFLAGS+= -DBIOSDISK  -DRUNONWIN95=1 
  114 CXXFLAGS+= -DBIOSDISK  -DRUNONWIN95=1 
  115 CONFIG_THREADS=n
  116 endif
  117 endif
  118 
  119 ifeq ($(FULLUNIX),y)
  120 #LINK some useful 'plugins' in main program instead of dynamic linkage?
  121 CONFIG_LINKINPLUGINS=y
  122 
  123 prefix=/mingw64
  124 datarootdir = ${prefix}/share
  125 exec_prefix=${prefix}
  126 bindir=${exec_prefix}/bin
  127 datadir=${datarootdir}
  128 mandir=${datarootdir}/man
  129 libdir=${exec_prefix}/lib
  130 LDFLAGS+=-Xlinker -rpath=$(libdir)
  131 TEMPDIR=$(prefix)/tmp
  132 CFLAGS+=-DTEMPDIR=\"$(TEMPDIR)\"
  133 CXXFLAGS+=-DTEMPDIR=\"$(TEMPDIR)\"
  134 export MANDIR=$(mandir)/man1
  135 ifneq ($(WINDOWS),yes)
  136 export CONFDIR=$(libdir)/$(CONFLASTDIR)
  137 HAS_X=y
  138 else
  139 # bed under CYGWIN uses windows find file
  140 export CONFDIR=$(datadir)/$(PROGRAM)
  141 TEMPDIR=$(prefix)/tmp
  142 endif
  143 export CONFDIRLINK=$(datadir)/$(PROGRAM)
  144 PERSCONFFILE=~/.$(CONFFILE)
  145 GLOBALCONFFILE=$(CONFDIRLINK)/$(CONFFILE)
  146 
  147 DEFAULTBEDRCBIN=$(PERSCONFFILE)-bin
  148 else
  149 
  150 ifeq ($(CYGWIN),yes)
  151 prefix=/cygdrive/c
  152 else
  153 prefix="c:/"
  154 endif
  155 bindir=$(prefix)/Windows
  156 datadir=$(prefix)/Program\ Files
  157 mandir=$(CONFDIR)
  158 export MANDIR=$(CONFDIR)
  159 export CONFDIR=$(datadir)/$(PROGRAM)
  160 export CONFDIRLINK=$(datadir)/$(PROGRAM)
  161 PERSCONFFILE=~/.$(CONFFILE)
  162 #BEDRCBINFILE="bedrc-bin"  #give only last part in MS Windows is placed in %APPDATA% if DEFAULTBEDRCBIN not defined 
  163 GLOBALCONFFILE=$(datadir)/bed/bedrc
  164 CFLAGS+=-DNCURSES_BED=\"$(CONFDIR)/bedn.exe\" -DNCURSES_BEDENV=\"BEDN\" 
  165 CXXFLAGS+=-DNCURSES_BED=\"$(CONFDIR)/bedn.exe\" -DNCURSES_BEDENV=\"BEDN\" 
  166 endif
  167 ifeq ($(SYSTEM),Android)
  168 PERSCONFFILE=/sdcard/.$(CONFFILE)
  169 endif
  170 CFLAGS+= -DPERSCONFFILE=\"$(PERSCONFFILE)\" 
  171 CXXFLAGS+= -DPERSCONFFILE=\"$(PERSCONFFILE)\" 
  172 ifneq ($(DEFAULTBEDRCBIN),)
  173 CFLAGS+=  -DDEFAULTBEDRCBIN=\"$(DEFAULTBEDRCBIN)\"
  174 CXXFLAGS+=  -DDEFAULTBEDRCBIN=\"$(DEFAULTBEDRCBIN)\"
  175 else 
  176 ifneq ($(BEDRCBINFILE),)
  177 CFLAGS+=-DBEDRCBINFILE=\"$(BEDRCBINFILE)\"
  178 CXXFLAGS+=-DBEDRCBINFILE=\"$(BEDRCBINFILE)\"
  179 endif
  180 endif
  181 CFLAGS+=  -DGLOBALCONFFILE=\"$(GLOBALCONFFILE)\" 
  182 CXXFLAGS+=  -DGLOBALCONFFILE=\"$(GLOBALCONFFILE)\" 
  183 
  184 export EXEPROGRAM=bed$(HOSTEXEEXT)
  185 
  186 #HAS_MAKEDEPEND=@HAS_MAKEDEPEND@
  187 export BASEDIR=$(prefix)
  188 export XPROGRAM=x$(PROGRAM)
  189 export BINDIR=$(bindir)
  190 
  191 export CONFVAR=BEDRC
  192 #s/AC_SUBST(\(.*\))/\1=@\1@
  193 
  194 ICONPATH=/usr/share/icons
  195 MENUPATH=/usr/lib/menu
  196 KDEMENU=/usr/share/applnk
  197 GNOMEMENU=/usr/share/gnome/apps
  198 BEDMENU=Editors
  199 XBEDMENU=Utilities
  200 XMENUNAME="bed - binary editor"
  201 MENUNAME="BED - BINARY EDITOR"
  202 DEFINES_H=$(BEDSRCDIR)/src/defines.h
  203 CFLAGS+= -DHAVE_CONFIG_H   -I$(BEDSRCDIR)/utils -I$(BEDSRCDIR)/x11 -imacros $(DEFINES_H) 
  204 CXXFLAGS+= -DHAVE_CONFIG_H   -I$(BEDSRCDIR)/utils -I$(BEDSRCDIR)/x11 -imacros $(DEFINES_H) 
  205 #CONFIG_XBED=n
  206 CONFIG_XBED=n
  207 NRXVT=
  208 RXVT=
  209 CONFIG_PROGMAN=n
  210 CROSS_COMPILING=no
  211 CC=gcc
  212 CXX=g++
  213 GXX=$(CXX)
  214 GCC=$(CC)
  215 TOBUILDCC=x86_64-w64-mingw32-gcc
  216 TOBUILDCXX=x86_64-w64-mingw32-c++
  217 
  218 HAS_X=n
  219 X_CFLAGS=
  220 X_LIBS=
  221 #X_EXTRA_LIBS= -lxcb -lXau -lXdmcp 
  222 X_EXTRA_LIBS= -lxcb -lXau  
  223 
  224 
  225 X_PRE_LIBS=
  226 
  227 PDCURSES=1
  228 
  229 
  230 USES_ELF=n
  231 ELFSIZE=unknown
  232 
  233 HAS_NROFF=y
  234 # *** spaces and tabs matter!!!! ***
  235 #configuration options:
  236 
  237 # link static=y
  238 CONFIG_STATIC=y
  239 
  240 
  241 ifeq ($(WINDOWS),yes)
  242 CONFIG_XBED=n
  243 endif
  244 
  245 
  246 
  247 
  248 # Uses mmap when searching makes searching (forward, casesensitive,
  249 # non regex) maybe a little bit faster. When true around 0.001%.
  250 # and until 0.2.4 it somehow didn't work on extended files
  251 CONFIG_MMAP=n
  252 
  253 # debug -g and making /tmp/bedtrace* and /tmp/beddebug* files. (y=do,m=only -g, n=nodebug, t=only debug files o=only -g -O2)
  254 CONFIG_DEBUG=n
  255 
  256 #y: offset in long long instead of long (not always supported)
  257 # needed for large harddrives
  258 CONFIG_LARGEFILES=y
  259 
  260 # Write the pieces between datatypes and offset numbers
  261 # Objective measures say that doing this makes the screen somehow faster,
  262 # but my subjective impression is that it becomes slower
  263 #y: write over with color TEXT which you should define  ~/.bedrc or $CONFDIR/bedrc
  264 #n: leave them background
  265 #c: give spacebetween new colour SPACEAFTER (little bit slower). When using rxvt
  266 #this leads sometimes to the wrong coloring.
  267 #b: same as c but no line after last datatype ("")
  268 #i: other colour APART between items (much slower)
  269 CONFIG_WRITEBETWEENPARTS=b
  270 
  271 # make msdos (edit, turbo-C IDE, Midnight/Norton Commander) lines around some menu's
  272 #y: do
  273 #n: don't do
  274 CONFIG_MENULINES=n
  275 
  276 #color support (depends also on color lines in (.)bedrc)
  277 #y: default color, black-white with option -B
  278 #n: not possible
  279 #o: default black-white, color with option -C
  280 CONFIG_COLOR=y
  281 
  282 ifeq ($(CONFIG_STATIC),y)
  283 ifeq (pdcurses,ncurses)
  284 CURSESLIB+= -ltinfo  -lgpm
  285 endif
  286 CONFIG_PLUGIN=n
  287 endif
  288 
  289 #Plugins can also be linked in the main program
  290 #LINKIN: Puts it among other linked in procedures
  291 #LINKINDYN: shows the linked in plugin like a dynamic one. Can not be put in menu's
  292 #Plugins to choice from: bitcontains.plug bitflags.plug duplicate.plug ebcdic2ascii.plug elftables.plug (needs index2table.plug) file.plug filter.plug float.plug gdb.plug nextitem.plug record.plug signed.plug skip.plug index2table.plug time.plug translate.plug  xterm.plug
  293 #defaults:
  294 #
  295 ifeq ($(CONFIG_LINKINPLUGINS),)
  296 ifeq ($(CONFIG_PLUGIN),y)
  297 CONFIG_LINKINPLUGINS=n
  298 else
  299 CONFIG_LINKINPLUGINS=y
  300 endif
  301 endif
  302 ifndef MINIMAL
  303 ifneq ($(CONFIG_LINKINPLUGINS),y)
  304 LINKIN+=time.plug  signed.plug float.plug bitflags.plug bitcontains.plug  duplicate.plug skip.plug nextitem.plug translate.plug
  305 #LINKINDYN+=
  306 else
  307 LINKIN+= ebcdic2ascii.plug time.plug  signed.plug float.plug bitflags.plug bitcontains.plug translate.plug duplicate.plug skip.plug nextitem.plug  helpf1.plug
  308 LINKINDYN+= backward.plug searchclip.plug datatypeinfo.plug cut.plug undoall.plug multiply.plug
  309 
  310 ifneq ($(WINDOWS),yes)
  311 #ifeq ($(HAS_X),y)
  312 LINKINDYN+=title.plug #putselect.plug switchsize.plug rxvt.plug
  313 #	OTHERLIBS+= $(THREADSLIB)   #for putselect.plug
  314 #endif
  315 endif
  316 ifeq ($(FULLUNIX),y)
  317 UNIXPLUGINS=y
  318 endif
  319 ifeq ($(UNIXPLUGINS),y)
  320 #LINKINDYN+=disass.plug filter.plug
  321 LINKINDYN+=filter.plug
  322 endif
  323 ifeq ($(HAVE_MAGIC_H),1)
  324 	LINKINDYN+=  magic.plug
  325 	OTHERLIBS+= -lmagic #-lz 
  326 	REMOVEPLUG+= file.plug
  327 else
  328 	REMOVEPLUG+= magic.plug
  329 	ifeq ($(HAS_FILE),y)
  330 	#LINKINDYN+=  file.plug
  331 	endif
  332 endif
  333 ifeq ($(UNIXPLUGINS),y)
  334 
  335 ifeq ($(USES_ELF),y)
  336 #LINKINDYN+=index2table.plug 
  337 endif
  338 ifeq ($(ELFSIZE),32)
  339 #LINKINDYN+=elftables32.plug 
  340 endif
  341 endif
  342 endif
  343 
  344 ifeq ($(WINDOWS),yes)
  345 LINKIN+=clipboard.plug title.plug
  346 ifeq (pdcurses,ncurses)
  347 
  348 LINKINDYN+=rxvt.plug
  349 endif
  350 endif
  351 endif # MINIMAL
  352 LINKIN+=edit.plug # if left out edit src/menu.h
  353 INLINKLIB=inlink.a
  354 
  355 #CFLAGS+=-DVERSION=\"$(VERSION)\" -DPROGRAM=\"$(PROGRAM)\"  -DCONFDIR=\"$(CONFDIR)\" -DCONFDIRLINK=\"$(CONFDIRLINK)\" -DBINDIR=\"$(BINDIR)\" -DCONFVAR=\"$(CONFVAR)\"  -DCONFFILE=\"$(CONFFILE)\"
  356 CFLAGS+= -DVERSION=\"$(VERSION)\" -DPROGRAM=\"$(PROGRAM)\"  -DCONFDIR=\"$(CONFDIR)\" -DCONFDIRLINK=\"$(CONFDIRLINK)\" -DBINDIR=\"$(BINDIR)\" -DCONFVAR=\"$(CONFVAR)\"  -DCONFFILE=\"$(CONFFILE)\" 
  357 CXXFLAGS+= -DVERSION=\"$(VERSION)\" -DPROGRAM=\"$(PROGRAM)\"  -DCONFDIR=\"$(CONFDIR)\" -DCONFDIRLINK=\"$(CONFDIRLINK)\" -DBINDIR=\"$(BINDIR)\" -DCONFVAR=\"$(CONFVAR)\"  -DCONFFILE=\"$(CONFFILE)\" 
  358 INLINKALL=$(LINKIN) $(LINKINDYN)
  359 ifeq ($(CROSS_COMPILING),no)
  360 TOBUILDCXXFLAGS=$(CXXFLAGS)
  361 TOBUILDCFLAGS=$(CFLAGS)
  362 TOBUILDLDFLAGS=$(LDFLAGS)
  363 endif
  364 ifeq ($(HOST_OS),mingw32)
  365 	CFLAGS+=-D_POSIX_THREAD_SAFE_FUNCTIONS=1
  366 	CXXFLAGS+=-D_POSIX_THREAD_SAFE_FUNCTIONS=1
  367 endif
  368 endif
  369