"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/examples/Makefile" between
bed-3.0.0.src.tar.xz and bed-3.0.1.src.tar.xz

About: bed is an adjustable data format binary editor.

Makefile  (bed-3.0.0.src.tar.xz):Makefile  (bed-3.0.1.src.tar.xz)
export LC_ALL=C export LC_ALL=C
ifeq ($(HOME),) ifeq ($(HOME),)
export HOME=/ export HOME=/
endif endif
export SRCPLUGINDIR=.. export SRCPLUGINDIR=..
CONFIGFILE= ../../config CONFIGFILE= ../../config
ifeq ($CONFDIR),) ifeq ($(CONFDIR),)
export PLUGINDIR=.. export PLUGINDIR=..
export BEDSRCDIR=../..
else else
export PLUGINDIR=$(CONFDIR)/plugins export PLUGINDIR=$(CONFDIR)/plugins
endif endif
include $(CONFIGFILE) include $(CONFIGFILE)
#include ../rules.mk #include ../rules.mk
DEFINES_H=../defines.h DEFINES_H=../defines.h
ifeq ($(CONFIG_STATIC),y) ifeq ($(CONFIG_STATIC),y)
CFLAGS := $(CFLAGS) -DSTATIC=1 CFLAGS := $(CFLAGS) -DSTATIC=1
CXXFLAGS := $(CXXFLAGS) -DSTATIC=1
endif endif
ifeq ($(CONFIG_LARGEFILES),y) ifeq ($(CONFIG_LARGEFILES),y)
CFLAGS := $(CFLAGS) -DLARGEFILES=1 CXXFLAGS := $(CXXFLAGS) -DLARGEFILES=1
endif endif
ifeq ($(CONFIG_THREADS),y) ifeq ($(CONFIG_THREADS),y)
CFLAGS := $(CFLAGS) -DUSETHREADS=1 -D_REENTRANT=1 CFLAGS := $(CFLAGS) -DUSETHREADS=1 -D_REENTRANT=1
CXXFLAGS := $(CXXFLAGS) -DUSETHREADS=1 -D_REENTRANT=1
endif endif
EXAMPLEDIR=$(PLUGINDIR)/examples EXAMPLEDIR=$(PLUGINDIR)/examples
EXAMPLEDIRSTR=\"$(EXAMPLEDIR)\" EXAMPLEDIRSTR=\"$(EXAMPLEDIR)\"
GENERAL=$(SRCPLUGINDIR)/plugin.cpp GENERAL=$(SRCPLUGINDIR)/plugin.cpp
HEADERS=$(SRCPLUGINDIR)/faked.h $(SRCPLUGINDIR)/mainprocedures.h HEADERS=$(SRCPLUGINDIR)/faked.h $(SRCPLUGINDIR)/mainprocedures.h
LDRELOC=-Ur -d LDRELOC=-Ur -d
TOHOSTCXX=$(CXX) TOHOSTCXX=$(CXX)
TOHOSTCC=$(CC) TOHOSTCC=$(CC)
#CFLAGS:= -fno-builtin-memcpy -fPIC $(CFLAGS) #CFLAGS:= -fno-builtin-memcpy -fPIC $(CFLAGS)
CFLAGS:= -fPIC $(CFLAGS)
BIN2BYTE= ../../utils/bin2byte BIN2BYTE= ../../utils/bin2byte
PLUGINCFLAGSALL=-DPLUGINSRC=1 PLUGINCFLAGSALL=-DPLUGINSRC=1
PLUGINCXXFLAGSALL=-DPLUGINSRC=1
ifeq ($(CONFIG_DEBUG),n) ifeq ($(CONFIG_DEBUG),n)
PLUGINLDFLAGS= -O3 -s $(LDFLAGS) PLUGINLDFLAGS= -O3 -s $(LDFLAGS)
PLUGINCFLAGS= $(CFLAGS) $(OPTS) -O3 $(PLUGINCFLAGSALL) PLUGINCFLAGS= $(CFLAGS) $(OPTS) -O3 $(PLUGINCFLAGSALL)
CXXFLAGS+= $(OPTS) -O3 $(CXXFLAGSALL)
else else
ifeq ($(CONFIG_DEBUG),o) ifeq ($(CONFIG_DEBUG),o)
PLUGINLDFLAGS= -O2 -g $(LDFLAGS) PLUGINLDFLAGS= -O2 -g $(LDFLAGS)
PLUGINCFLAGS= $(CFLAGS) $(OPTS) -g -O2 $(PLUGINCFLAGSALL) -DDEBUGFLAG PLUGINCFLAGS= $(CFLAGS) $(OPTS) -g -O2 $(PLUGINCFLAGSALL) -DDEBUGFLAG
CXXFLAGS+= $(OPTS) -g -O2 $(PLUGINCXXFLAGSALL) -DDEBUGFLAG
else else
ifeq ($(CONFIG_DEBUG),m)
PLUGINCFLAGS= $(CFLAGS) $(OPTS) -g $(PLUGINCFLAGSALL)
CXXFLAGS+= $(OPTS) -g $(PLUGINCXXFLAGSALL)
PLUGINLDFLAGS= -g $(LDFLAGS)
else
PLUGINCFLAGS= $(CFLAGS) $(OPTS) -g $(PLUGINCFLAGSALL) -DDEBUGFLAG PLUGINCFLAGS= $(CFLAGS) $(OPTS) -g $(PLUGINCFLAGSALL) -DDEBUGFLAG
CXXFLAGS+= $(OPTS) -g $(PLUGINCXXFLAGSALL) -DDEBUGFLAG
PLUGINLDFLAGS= -g $(LDFLAGS) PLUGINLDFLAGS= -g $(LDFLAGS)
endif endif
endif endif
endif
#BEDSRCDIR=\"../../src\" #BEDSRCDIR=\"../../src\"
PLUGINREST := -I../ -I../../src/ -I../../src/empty $(X_CFLAGS) -DNEWTERM -DBEDSRCDIR=$(BEDSRCDIR) PLUGINREST := -I../ -I../../src/ -I../../src/empty $(X_CFLAGS) -DNEWTERM -DBEDSRCDIR=$(BEDSRCDIR)
PLUGINCFLAGS := $(PLUGINREST) $(PLUGINCFLAGS) # -m96bit-long-double PLUGINCFLAGS := $(PLUGINREST) $(PLUGINCFLAGS) # -m96bit-long-double
CXXFLAGS := $(PLUGINREST) $(CXXFLAGS) # -m96bit-long-double
CFLAGSNOOPT= $(CFLAGS) $(PLUGINCFLAGSALL) $(PLUGINREST) CFLAGSNOOPT= $(CFLAGS) $(PLUGINCFLAGSALL) $(PLUGINREST)
CXXFLAGSNOOPT= $(CXXFLAGS) $(PLUGINCXXFLAGSALL) $(PLUGINREST)
DYNLINK:= -fPIC
PLUGINCXXFLAGS:=$(DYNLINK) $(CXXFLAGS)
LINKINCXXFLAGS:=$(CXXFLAGS) $(PROGRAMC)
#PLUGINCFLAGS=-g #PLUGINCFLAGS=-g
#PLUGINLDFLAGS=-s -O6 #PLUGINLDFLAGS=-s -O6
#PLUGINLDFLAGS= -O6 #PLUGINLDFLAGS= -O6
#PLUGINLDFLAGS= -g #PLUGINLDFLAGS= -g
#PLUGINLDFLAGS+=-Wl,-z,noexecstack #PLUGINLDFLAGS+=-Wl,-z,noexecstack
#PLUGINLDFLAGS+=-Wl -z --noexecstack #PLUGINLDFLAGS+=-Wl -z --noexecstack
ifneq ($(SYSTEM),SunOS) ifneq ($(SYSTEM),SunOS)
#PLUGINLDFLAGS+= -z --noexecstack #PLUGINLDFLAGS+= -z --noexecstack
PLUGINLDFLAGS+=-Wl,-z,noexecstack $(LDFLAGS) PLUGINLDFLAGS+=-Wl,-z,noexecstack $(LDFLAGS)
endif endif
LINKINLDFLAGS=$(LDFLAGS) $(PROGRAMLD)
SRC:= bitcontains.cc bitcpy.cc bitfields.cc bitfields.h bitflags.cc char2.cc c hars.c crc.c duplicate.cpp edit.cc file.cpp filter.cpp float.cc disass.cc ha sh.h disass-use.c nextitem.cpp subtract.cc signed.cc skip.cpp time.cpp transla te.cc undoall.cpp unsigned.cpp backward.cc oldsigned.cc oldsigned.h signed.h title.cc helpf1.cc searchclip.cc newdata.cc install.cc datatypeinfo.cc cut.cc ev entnames.h SRC:= bitcontains.cc bitcpy.cc bitfields.cc bitfields.h bitflags.cc char2.cc c hars.c crc.c duplicate.cpp edit.cc file.cpp filter.cpp float.cc disass.cc ha sh.h disass-use.c nextitem.cpp subtract.cc signed.cc skip.cpp time.cpp transla te.cc undoall.cpp unsigned.cpp backward.cc oldsigned.cc oldsigned.h signed.h title.cc helpf1.cc searchclip.cc newdata.cc install.cc datatypeinfo.cc cut.cc ev entnames.h
TESTSRC:= testall.cpp testbed.cpp testmode.cpp testsave.cpp testsearch.cpp TESTSRC:= testall.cpp testbed.cpp testmode.cpp testsave.cpp testsearch.cpp
DATATYPES:= char2.plug float.plug subtract.plug signed.plug unsigned.plug ebcd ic2ascii.plug bitcontains.plug bitflags.plug oldsigned.plug newdata.plug DATATYPES:= char2.plug float.plug subtract.plug signed.plug unsigned.plug ebcd ic2ascii.plug bitcontains.plug bitflags.plug oldsigned.plug newdata.plug
MISC:= file.plug filter.plug disass-use disass.plug nextitem.plug undoall.plug skip.plug duplicate.plug edit.plug translate.plug backward.plug title.plug hel pf1.plug install.plug searchclip.plug datatypeinfo.plug cut.plug MISC:= file.plug filter.plug disass-use disass.plug nextitem.plug undoall.plug skip.plug duplicate.plug edit.plug translate.plug backward.plug title.plug hel pf1.plug install.plug searchclip.plug datatypeinfo.plug cut.plug
ifeq ($(HAS_X),y) ifeq ($(HAS_X),y)
MISC+= switchsize.plug putselect.plug rxvt.plug MISC+= switchsize.plug putselect.plug rxvt.plug
endif endif
ifeq ($(USES_ELF),y) ifeq ($(USES_ELF),y)
DATATYPES+= index2table.plug elftables32.plug DATATYPES+= index2table.plug elftables32.plug
SRC+=index2table.cc elftables32.cc index2table.h SRC+=index2table.cc elftables32.cc index2table.h
XSRC:= switchsize.cc rxvt.cc
ifeq ($(CONFIG_THREADS),y)
XSRC+= putselect.cc
endif
endif endif
TESTPLUG= testall.plug testbed.plug testmode.plug testsave.plug testsearch.plug TESTPLUG= testall.plug testbed.plug testmode.plug testsave.plug testsearch.plug
PLUGINS= $(DATATYPES) $(MISC) PLUGINS= $(DATATYPES) $(MISC)
GIVEOLD= time.plug ebcdic2ascii.plug skip.plug file.plug duplicate.plug nextit em.plug GIVEOLD= time.plug ebcdic2ascii.plug skip.plug file.plug duplicate.plug nextit em.plug
GIVENEW= float.plug signed.plug edit.plug bitflags.plug bitcontains.plug trans late.plug backward.plug title.plug helpf1.plug searchclip.plug datatypeinfo.plu g cut.plug filter.plug disass.plug undoall.plug GIVENEW= float.plug signed.plug edit.plug bitflags.plug bitcontains.plug trans late.plug backward.plug title.plug helpf1.plug searchclip.plug datatypeinfo.plu g cut.plug filter.plug disass.plug undoall.plug char2.plug
ifeq ($(USES_ELF),y) ifeq ($(USES_ELF),y)
GIVEMISC=disass-use GIVEMISC=disass-use
endif endif
ifeq ($(ELFSIZE),32) ifeq ($(ELFSIZE),32)
GIVENEW+=index2table.plug elftables32.plug GIVENEW+=index2table.plug elftables32.plug
endif endif
ifeq ($(HAS_X),y) ifeq ($(HAS_X),y)
SRC+= switchsize.cc rxvt.cc SRC+= $(XSRC)
GIVENEW+= switchsize.plug rxvt.plug GIVENEW+= switchsize.plug rxvt.plug
ifeq ($(CONFIG_THREADS),y) ifeq ($(CONFIG_THREADS),y)
SRC+= putselect.cc GIVENEW+=putselect.plug
GIVENEW+=putselect.plug endif
endif
endif endif
ifeq ($(CYGWIN),yes) ifeq ($(CYGWIN),yes)
SRC+=clipboard.cc switchsize.cc rxvt.cc SRC+=clipboard.cc switchsize.cc rxvt.cc
endif endif
PREGIVE= $(GIVEOLD) $(GIVENEW) PREGIVE= $(GIVEOLD) $(GIVENEW)
ifeq ($(CONFIG_PLUGIN),y) ifeq ($(CONFIG_PLUGIN),y)
GIVE= $(filter-out $(LINKIN) $(LINKINDYN),$(PREGIVE)) GIVE= $(filter-out $(REMOVEPLUG) $(LINKIN) $(LINKINDYN),$(PREGIVE))
else else
GIVE= GIVE=
endif endif
#GIVE= $(filter signed.plug,$(PREGIVE)) #GIVE= $(filter signed.plug,$(PREGIVE))
NOTGIVE= $(filter-out $(PREGIVE),$(PLUGINS)) NOTGIVE= $(filter-out $(PREGIVE),$(PLUGINS))
NONEX= $(filter-out $(PLUGINS),$(GIVE)) NONEX= $(filter-out $(PLUGINS),$(GIVE))
INLINK=$(LINKIN:%.plug=%.oo) INLINK=$(LINKIN:%.plug=%.oo)
INLINKSRC=$(filter $(wildcard *.cc *.cpp *.CPP *.CC), $(wildcard $(LINKIN:%.plug =%.c[cp]*)) ) INLINKSRC=$(filter $(wildcard *.cc *.cpp *.CPP *.CC), $(wildcard $(LINKIN:%.plug =%.c[cp]*)) )
INLINKDYN=$(LINKINDYN:%.plug=%.ooo) INLINKDYN=$(LINKINDYN:%.plug=%.ooo)
INLINKDYNSRC=$(filter $(wildcard *.cc *.cpp), $(wildcard $(LINKINDYN:%.plug=%.c[ cp]*)) ) INLINKDYNSRC=$(filter $(wildcard *.cc *.cpp), $(wildcard $(LINKINDYN:%.plug=%.c[ cp]*)) )
#INLINKSRC=$(patsubst %.plug,%.cc %.cpp,$(LINKIN)) #INLINKSRC=$(patsubst %.plug,%.cc %.cpp,$(LINKIN))
EXAMPLES= $(filter-out $(LINKIN) $(LINKINDYN),$(PLUGINS)) EXAMPLES= $(filter-out $(LINKIN) $(LINKINDYN),$(PLUGINS))
INSTALL=install INSTALL=install
GENERATED= ascii2ebcdic.h ebcdic2ascii.h ebcdic2ascii.cc floatdef.h GENERATED= ascii2ebcdic.h ebcdic2ascii.h ebcdic2ascii.cc floatdef.h
ALLSRC:=Makefile $(SRC) $(GENERATED) encodechar.sh macro2plug.sh ALLSRC:=Makefile $(SRC) $(XSRC) $(GENERATED) encodechar.sh macro2plug.sh
ALLFILES :=$(ALLSRC) $(PLUGINS) ALLFILES :=$(ALLSRC) $(PLUGINS)
GIVEALL:=$(ALLSRC) $(GIVE) GIVEALL:=$(ALLSRC) $(GIVE)
INLINKALL= $(patsubst bitcontains.%,bitcontains.% bitcpy.o bitfields.o, $(INLINK ) $(INLINKDYN) ) INLINKALL= $(patsubst bitcontains.%,bitcontains.% bitcpy.o bitfields.o, $(INLINK ) $(INLINKDYN) )
ifeq ($(SYSTEM),FreeBSDnot) ifeq ($(SYSTEM),FreeBSDnot)
all: nss_dns.so.1 $(EXAMPLES) all: nss_dns.so.1 $(EXAMPLES)
else else
all: $(EXAMPLES) all: $(EXAMPLES)
endif endif
give: $(GIVE) $(GIVEMISC) give: $(GIVE) $(GIVEMISC)
data:$(DATATYPES) data:$(DATATYPES)
INBEDRC=$(filter-out switchsize.plug rxvt.plug putselect.plug,$(GIVE)) INBEDRC=$(filter-out switchsize.plug rxvt.plug putselect.plug,$(GIVE))
try: try:
skipping to change at line 204 skipping to change at line 228
-rm inlink.h -rm inlink.h
touch inlink.h touch inlink.h
endif endif
##define callname(name,proc) int (Editor::*for_procedures_h_##proc##_prodefname )(void)=&Editor::proc;char name_part_##proc##_end[]=name; ##define callname(name,proc) int (Editor::*for_procedures_h_##proc##_prodefname )(void)=&Editor::proc;char name_part_##proc##_end[]=name;
#../../src/inlink.h: $(INLINKIN) $(CONFIGFILE) #../../src/inlink.h: $(INLINKIN) $(CONFIGFILE)
# sed '{s/^[ ]*call([ ]*\([^),; .*/\\]*\)[ ]*)/prode f(\1)/p; s/^[ ]*callname([ ]*\([^),; .*/\\]*\)[ ]*)/prodefname(\1 )/p; s/^.*//p; }' $(INLINKSRC) > $@ # sed '{s/^[ ]*call([ ]*\([^),; .*/\\]*\)[ ]*)/prode f(\1)/p; s/^[ ]*callname([ ]*\([^),; .*/\\]*\)[ ]*)/prodefname(\1 )/p; s/^.*//p; }' $(INLINKSRC) > $@
# $(TOHOSTCXX) $(PLUGINCFLAGS) -DPLUGIN -x c -E -P -D"call(x)=uniekvoorin linkhprodef(x)" -D"callname(name,x)=uniekvoorinlinkhprodefname(name,x)" $(INLI NKSRC)> tussengegs # $(TOHOSTCXX) $(PLUGINCFLAGS) -DPLUGIN -x c -E -P -D"call(x)=uniekvoorin linkhprodef(x)" -D"callname(name,x)=uniekvoorinlinkhprodefname(name,x)" $(INLI NKSRC)> tussengegs
bitfields.plug: bitfields.o bitcpy.o bitfields.plug: bitfields.o bitcpy.o
echo hello
$(TOHOSTCXX) $(PLUGINLDFLAGS) -shared $^ -o $@ $(TOHOSTCXX) $(PLUGINLDFLAGS) -shared $^ -o $@
chmod a-x $@ chmod a-x $@
#s/-DEXAMPLEDIR=$(EXAMPLEDIR)/\-DEXAMPLEDIR\=\$(EXAMPLEDIRSTR)/g #s/-DEXAMPLEDIR=$(EXAMPLEDIR)/\-DEXAMPLEDIR\=\$(EXAMPLEDIRSTR)/g
bitfields.o: bitfields.cc bitfields.o: bitfields.cc
$(TOHOSTCXX) -DNOEDITOR -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DPLUGIN -DEXAMP LEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -DNOEDITOR -DGLOBAL -DUNDER $(PLUGINCXXFLAGS) -DPLUGIN -DEXA MPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
bitcontains.plug: bitcontains.o bitcpy.o bitfields.o bitcontains.plug: bitcontains.o bitcpy.o bitfields.o
$(TOHOSTCXX) $(PLUGINLDFLAGS) -shared $^ -o $@ $(TOHOSTCXX) $(PLUGINLDFLAGS) -shared $^ -o $@
chmod a-x $@ chmod a-x $@
mkfloatdef: mkfloatdef.cc Makefile mkfloatdef: mkfloatdef.cc Makefile
$(TOBUILDCXX) -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DPLUGIN -DEXAMPLEDIR=$(E XAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@ $(TOBUILDCXX) -DGLOBAL -DUNDER $(CXXFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EXAMP LEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@
floatdef.h: mkfloatdef floatdef.h: mkfloatdef
./mkfloatdef > floatdef.h ./mkfloatdef > floatdef.h
#float.oo: floatdef.h #float.oo: floatdef.h
#float.ooo: floatdef.h #float.ooo: floatdef.h
#float.o: floatdef.h #float.o: floatdef.h
%.plug: %.o %.plug: %.o
# $(TOHOSTCXX) -shared $(PLUGINLDFLAGS) $< func.o -o $@ # $(TOHOSTCXX) -shared $(PLUGINLDFLAGS) $< func.o -o $@
$(TOHOSTCXX) -shared $(PLUGINLDFLAGS) $< -o $@ $(TOHOSTCXX) -shared $(PLUGINLDFLAGS) $< -o $@
chmod a-x $@ chmod a-x $@
rm $< rm $<
%.o: %.cpp $(GENERAL) $(HEADERS) %.o: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) $(PLUGINCFLAGS) -DPLUGIN=1 -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DS OURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@ $(TOHOSTCXX) $(PLUGINCXXFLAGS) -DPLUGIN=1 -DEXAMPLEDIR=$(EXAMPLEDIRSTR) - DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@
%.o: %.cc $(HEADERS) %.o: %.cc $(HEADERS)
$(TOHOSTCXX) -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EX AMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -DGLOBAL -DUNDER $(PLUGINCXXFLAGS) -DPLUGIN -DEXAMPLEDIR=$( EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
elftables32.o: elftables32.cc $(HEADERS) elftables32.o: elftables32.cc $(HEADERS)
$(TOHOSTCXX) -g -DGLOBAL -DUNDER $(CFLAGSNOOPT) -DPLUGIN -DEXAMPLEDIR=$ (EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -g -DGLOBAL -DUNDER $(PLUGINCXXFLAGS) -DPLUGIN -DEXAMPLEDI R=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
ifneq ($(CYGWIN),yes) ifneq ($(CYGWIN),yes)
XINCL=$(X_CFLAGS) XINCL=$(X_CFLAGS)
endif endif
switchsize.o: switchsize.cc $(HEADERS) switchsize.o: switchsize.cc $(HEADERS)
$(TOHOSTCXX) $(XINCL) -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DPLUGIN -DEXAMPL EDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) $(XINCL) -DGLOBAL -DUNDER $(PLUGINCXXFLAGS) -DPLUGIN -DEXAM PLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
%.i: %.cc $(HEADERS) %.i: %.cc $(HEADERS)
$(TOHOSTCXX) -DGLOBAL -DUNDER -DPLUGIN $(PLUGINCFLAGS) -DEXAMPLEDIR=$(E XAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E -P $< -o $@ $(TOHOSTCXX) -DGLOBAL -DUNDER -DPLUGIN $(PLUGINCXXFLAGS) -DEXAMPLEDIR=$ (EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E -P $< -o $@
%.oo: %.cc $(HEADERS) %.oo: %.cc $(HEADERS)
$(TOHOSTCXX) -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIR STR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -DGLOBAL -DUNDER $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLED IRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
#bitcontains.oo: bitcontains.oo bitcpy.oo bitfields.oo #bitcontains.oo: bitcontains.oo bitcpy.oo bitfields.oo
# ld -o $@ $^ $(LDRELOC) # ld -o $@ $^ $(LDRELOC)
#bitcontains.ooo: bitcontains.ooo bitcpy.ooo bitfields.ooo #bitcontains.ooo: bitcontains.ooo bitcpy.ooo bitfields.ooo
# ld -o $@ $^ $(LDRELOC) # ld -o $@ $^ $(LDRELOC)
%.ooo: %.cc $(HEADERS) %.ooo: %.cc $(HEADERS)
$(TOHOSTCXX) -DFAKE_DYNAMIC=1 -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DEXAMPL EDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -DFAKE_DYNAMIC=1 -DGLOBAL -DUNDER $(LINKINCXXFLAGS) -DEXAM PLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
elftables32.ooo: elftables32.cc $(HEADERS) elftables32.ooo: elftables32.cc $(HEADERS)
$(TOHOSTCXX) -DFAKE_DYNAMIC=1 -DGLOBAL -DUNDER $(CFLAGSNOOPT) -DEXAMPLE DIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ $(TOHOSTCXX) -DFAKE_DYNAMIC=1 -DGLOBAL -DUNDER $(CXXFLAGSNOOPT) -DEXAMP LEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
%.ooo: %.cpp $(GENERAL) $(HEADERS) %.ooo: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) -DFAKE_DYNAMIC $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR ) -DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@ $(TOHOSTCXX) -DFAKE_DYNAMIC $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRS TR) -DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@
%.oo: %.cpp $(GENERAL) $(HEADERS) %.oo: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILE NAME=\"examples/$<\" -c $(GENERAL) -o $@ $(TOHOSTCXX) $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFI LENAME=\"examples/$<\" -c $(GENERAL) -o $@
%.iii: %.cc $(HEADERS) $(CONFIGFILE) %.iii: %.cc $(HEADERS) $(CONFIGFILE)
$(TOHOSTCXX) -P -DFAKE_DYNAMIC -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DEXAM PLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@ $(TOHOSTCXX) -P -DFAKE_DYNAMIC -DGLOBAL -DUNDER $(LINKINCXXFLAGS) -DEX AMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@
%.iii: %.cpp $(GENERAL) $(HEADERS) %.iii: %.cpp $(GENERAL) $(HEADERS)
echo hallo echo hallo
$(TOHOSTCXX) -P -DFAKE_DYNAMIC $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIR $(TOHOSTCXX) -P -DFAKE_DYNAMIC $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLED
STR) -DSOURCEFILENAME=\"examples/$<\" -E $(GENERAL) -o $@ IRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $(GENERAL) -o $@
$(TOHOSTCXX) -DFAKE_DYNAMIC $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR $(TOHOSTCXX) -DFAKE_DYNAMIC $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRS
) -DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $*.ooo TR) -DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $*.ooo
%.ii: %.cc $(HEADERS) $(CONFIGFILE) %.ii: %.cc $(HEADERS) $(CONFIGFILE)
$(TOHOSTCXX) -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIR $(TOHOSTCXX) -DGLOBAL -DUNDER $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLED
STR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@ IRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@
# $(TOHOSTCXX) '-Dwill_be_used_to_get_prodefname_in_inlink_h(x,y)=prodefnam # $(TOHOSTCXX) '-Dwill_be_used_to_get_prodefname_in_inlink_h(x,y)=prodefnam
e(x,y)' '-Uwill_be_used_to_get_prodef_in_inlink_h(x)=prodef(x)' -DGLOBAL -DUNDER e(x,y)' '-Uwill_be_used_to_get_prodef_in_inlink_h(x)=prodef(x)' -DGLOBAL -DUNDER
$(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\ $(PLUGINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$
" -E $< -o $@ <\" -E $< -o $@
# $(TOHOSTCXX) '-Uwill_be_used_to_get_prodefname_in_inlink_h' '-Uwill_be_us # $(TOHOSTCXX) '-Uwill_be_used_to_get_prodefname_in_inlink_h' '-Uwill_be_us
ed_to_get_prodef_in_inlink_h' -DGLOBAL -DUNDER $(PLUGINCFLAGS) -DEXAMPLEDIR=$(E ed_to_get_prodef_in_inlink_h' -DGLOBAL -DUNDER $(PLUGINCXXFLAGS) -DEXAMPLEDIR=$
XAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@ (EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -E $< -o $@
%.ii: %.cpp $(GENERAL) $(HEADERS) %.ii: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) -P $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCE FILENAME=\"examples/$<\" -E $(GENERAL) -o $@ $(TOHOSTCXX) -P $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOUR CEFILENAME=\"examples/$<\" -E $(GENERAL) -o $@
%.s: %.cpp $(GENERAL) $(HEADERS) %.s: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) $(PLUGINCFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -D SOURCEFILENAME=\"examples/$<\" -S $(GENERAL) -o $@ $(TOHOSTCXX) $(LINKINCXXFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -S $(GENERAL) -o $@
disass-use: disass-use.c disass-use: disass-use.c
$(TOHOSTCC) $(CFLAGSNOOPT) -g disass-use.c -o disass-use $(TOHOSTCC) $(CFLAGSNOOPT) $(LINKINLDFLAGS) -g disass-use.c -o disass-use
# cd $(EXAMPLEDIR) ;pwd>;cd $(CURRENT) # cd $(EXAMPLEDIR) ;pwd>;cd $(CURRENT)
nss_dns.so.1:./mknss_dns.sh Makefile ../../config nss_dns.so.1:./mknss_dns.sh Makefile ../../config
sh ./mknss_dns.sh . sh ./mknss_dns.sh .
install: $(CONFIGFILE) install: $(CONFIGFILE)
-mkdir -p $(ROOTDIR)$(EXAMPLEDIR) -mkdir -p $(ROOTDIR)$(EXAMPLEDIR)
ifeq ($(SYSTEM),FreeBSD) ifeq ($(SYSTEM),FreeBSD)
sh ./mknss_dns.sh $(ROOTDIR)$(EXAMPLEDIR) sh ./mknss_dns.sh $(ROOTDIR)$(EXAMPLEDIR)
endif endif
cp $(GIVEMISC) $(GIVEALL) $(ROOTDIR)$(EXAMPLEDIR) cp $(GIVEMISC) $(GIVEALL) $(ROOTDIR)$(EXAMPLEDIR)
(CURDIR=`pwd`;cd $(ROOTDIR)$(EXAMPLEDIR);chmod 644 $(GIVEALL); cd $$CURDI R) (CURDIR=`pwd`;cd $(ROOTDIR)$(EXAMPLEDIR);chmod 644 $(GIVEALL); cd $$CURDI R)
# -rm $(EXAMPLEDIR)/disass-use # -rm $(EXAMPLEDIR)/disass-use
# $(MAKE) -C $(EXAMPLEDIR) disass-use # $(MAKE) -C $(EXAMPLEDIR) disass-use
# -rm $(EXAMPLEDIR)/disass.plug # -rm $(EXAMPLEDIR)/disass.plug
# $(MAKE) -C $(EXAMPLEDIR) disass.plug # $(MAKE) -C $(EXAMPLEDIR) disass.plug
%.i: %.cpp $(GENERAL) $(HEADERS) %.i: %.cpp $(GENERAL) $(HEADERS)
$(TOHOSTCXX) -DPLUGIN $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DS OURCEFILENAME=\"examples/$<\" -E -P $(GENERAL) -o $@ $(TOHOSTCXX) -DPLUGIN $(PLUGINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) - DSOURCEFILENAME=\"examples/$<\" -E -P $(GENERAL) -o $@
clean: clean:
-rm *.plug *.o *.oo *.ooo disass-use$(HOSTEXEEXT) core ingive *.ii *.i *.iii -rm *.plug *.o *.oo *.ooo disass-use$(HOSTEXEEXT) core ingive *.ii *.i *.iii
realclean: clean realclean: clean
-rm mkhelp$(BUILDEXEEXT) mkman$(BUILDEXEEXT) -rm mkhelp$(BUILDEXEEXT) mkman$(BUILDEXEEXT)
-rm plugman plughelp inlinklist inlink.h mkhelp.h mkman.h -rm plugman plughelp inlinklist inlink.h mkhelp.h mkman.h
ifneq ($(CYGWIN),yes) ifneq ($(CYGWIN),yes)
-rm chars -rm chars
else else
skipping to change at line 332 skipping to change at line 355
chmod a-x $@ chmod a-x $@
switchsize: switchsize.cc switchsize: switchsize.cc
echo $(CYGWIN) echo $(CYGWIN)
ifneq ($(CYGWIN),yes) ifneq ($(CYGWIN),yes)
$(TOHOSTCXX) -I../../src -g -DTEST $< -o $@ $(X_LIBS) -lX11 $(X_EXTRA_L IBS) $(TOHOSTCXX) -I../../src -g -DTEST $< -o $@ $(X_LIBS) -lX11 $(X_EXTRA_L IBS)
else else
$(TOHOSTCXX) -I../../src -D_WIN32 -g -DTEST $< -o $@ $(TOHOSTCXX) -I../../src -D_WIN32 -g -DTEST $< -o $@
endif endif
disass.plug: disass.o disass-use disass.plug: disass.o disass-use
$(TOHOSTCXX) $(PLUGINCFLAGS) -shared $< -o $@ $(TOHOSTCXX) $(PLUGINLDFLAGS) -shared $< -o $@
chmod a-x $@ chmod a-x $@
time: time.cpp time: time.cpp
$(TOHOSTCXX) -g -DTEST -DGLOBAL $< -o $@ $(X_LIBS) -lX11 $(X_EXTRA_LIB S) $(TOHOSTCXX) -g -DTEST -DGLOBAL $< -o $@ $(X_LIBS) -lX11 $(X_EXTRA_LIB S)
chars.bin: chars.c chars.bin: chars.c
$(TOBUILDCC) chars.c -o chars $(TOBUILDCC) chars.c -o chars
./chars > chars.bin ./chars > chars.bin
ifneq ($(CYGWIN),yes) ifneq ($(CYGWIN),yes)
rm chars rm chars
else else
skipping to change at line 372 skipping to change at line 395
MACRODATA=12345678BeginMacroKeyStrokes MACRODATA=12345678BeginMacroKeyStrokes
MACROFLAGS=-DMACROFUNCTION=\"$(MACROFUNCTION)\" -DMACRODATA=\"$(MACRODATA)\" MACROFLAGS=-DMACROFUNCTION=\"$(MACROFUNCTION)\" -DMACRODATA=\"$(MACRODATA)\"
#macrotemplate.plug: macrotemplate.cpp Makefile ./fsize $(CONFIGFILE) #macrotemplate.plug: macrotemplate.cpp Makefile ./fsize $(CONFIGFILE)
# $(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -shared $(MACROFLAGS) $(PLUGINCFLA GS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $(GENERAL) -o $@ # $(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -shared $(MACROFLAGS) $(PLUGINCFLA GS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $(GENERAL) -o $@
#macrotemplate.o: macrotemplate.cc Makefile ./fsize $(CONFIGFILE) #macrotemplate.o: macrotemplate.cc Makefile ./fsize $(CONFIGFILE)
# $(TOHOSTCXX) -DGLOBAL -DUNDER $(MACROFLAGS) $(PLUGINCFLAGS) -DPLUGIN -D EXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@ # $(TOHOSTCXX) -DGLOBAL -DUNDER $(MACROFLAGS) $(PLUGINCFLAGS) -DPLUGIN -D EXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" -c $< -o $@
#macrotemplate.plug: macrotemplate.o #macrotemplate.plug: macrotemplate.o
# ld -shared $< -o $@ # ld -shared $< -o $@
macrotemplate.plug: macrotemplate.cc Makefile ./fsize $(CONFIGFILE) macrotemplate.plug: macrotemplate.cc Makefile ./fsize $(CONFIGFILE)
$(TOHOSTCXX) -shared -DGLOBAL -DUNDER $(MACROFLAGS) $(PLUGINCFLAGS) -DPLU GIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@ $(TOHOSTCXX) -shared -DGLOBAL -DUNDER $(MACROFLAGS) $(PLUGINCXXFLAGS) -DP LUGIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@
# $(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -shared $(MACROFLAGS) $(PLUGINCFLA GS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@ # $(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -shared $(MACROFLAGS) $(PLUGINCFLA GS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $< -o $@
macrotemplate.i: macrotemplate.cpp Makefile macrotemplate.i: macrotemplate.cpp Makefile
$(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -E -shared $(MACROFLAGS) $(PLUGIN CFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $(GENE RAL) -o $@ $(TOHOSTCXX) $(PLUGINLDFLAGS) -DPLUGIN -E -shared $(MACROFLAGS) $(PLUGIN CXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILENAME=\"examples/$<\" $(GE NERAL) -o $@
places.h: macrotemplate.plug pos places.h: macrotemplate.plug pos
echo -n "int macrofunctionpos=" > places.h echo -n "int macrofunctionpos=" > places.h
./pos macrotemplate.plug $(MACROFUNCTION) >>places.h ./pos macrotemplate.plug $(MACROFUNCTION) >>places.h
echo ";" >>places.h echo ";" >>places.h
echo -n "int macrodatapos=" >> places.h echo -n "int macrodatapos=" >> places.h
./pos macrotemplate.plug $(MACRODATA) >>places.h ./pos macrotemplate.plug $(MACRODATA) >>places.h
echo ";" >>places.h echo ";" >>places.h
macroplug.o: macroplug.cpp $(GENERAL) $(HEADERS) places.h $(CONFIGFILE) macroplug.o: macroplug.cpp $(GENERAL) $(HEADERS) places.h $(CONFIGFILE)
$(TOHOSTCXX) $(PLUGINCFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DS OURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@ $(TOHOSTCXX) $(PLUGINCXXFLAGS) -DPLUGIN -DEXAMPLEDIR=$(EXAMPLEDIRSTR) - DSOURCEFILENAME=\"examples/$<\" -c $(GENERAL) -o $@
macroplug.oo: macroplug.cpp $(GENERAL) $(HEADERS) places.h $(CONFIGFILE) macroplug.oo: macroplug.cpp $(GENERAL) $(HEADERS) places.h $(CONFIGFILE)
$(TOHOSTCXX) $(PLUGINCFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFILE NAME=\"examples/$<\" -c $(GENERAL) -o $@ $(TOHOSTCXX) $(LINKINCXXFLAGS) -DEXAMPLEDIR=$(EXAMPLEDIRSTR) -DSOURCEFI LENAME=\"examples/$<\" -c $(GENERAL) -o $@
../mainprocedures.h: ../mainprocedures.h:
$(MAKE) -C .. mainprocedures.h $(MAKE) -C .. mainprocedures.h
plughelp: mkhelp plughelp: mkhelp
./mkhelp > plughelp ./mkhelp > plughelp
mkhelp: mkhelp.h mkhelp.c mkhelp: mkhelp.h mkhelp.c
$(TOBUILDCC) -DHELP_H='"mkhelp.h"' mkhelp.c -o mkhelp $(TOBUILDCC) -DHELP_H='"mkhelp.h"' mkhelp.c -o mkhelp
mkhelp.h: $(INLINKSRC) mkhelp.sh $(CONFIG) mkhelp.h: $(INLINKSRC) mkhelp.sh $(CONFIG)
sh ./mkhelp.sh $(INLINKSRC) > mkhelp.h sh ./mkhelp.sh $(INLINKSRC) > mkhelp.h
skipping to change at line 413 skipping to change at line 436
./mkman > plugman ./mkman > plugman
mkman: mkman.h mkhelp.c mkman: mkman.h mkhelp.c
$(TOBUILDCC) -DHELP_H='"mkman.h"' mkhelp.c -o mkman $(TOBUILDCC) -DHELP_H='"mkman.h"' mkhelp.c -o mkman
mkman.h: $(SRC) mkhelp.sh mkman.h: $(SRC) mkhelp.sh
sh ./mkhelp.sh $(filter-out $(INLINKSRC),$(SRC)) > mkman.h sh ./mkhelp.sh $(filter-out $(INLINKSRC),$(SRC)) > mkman.h
#|sed -e 's/helpteksten(\([^ ,]*\),[^"]*"\([^"]*\)".*/\1 \2/g'|sed -e 's/\\n/n ewline\/g' > mkhelp.h #|sed -e 's/helpteksten(\([^ ,]*\),[^"]*"\([^"]*\)".*/\1 \2/g'|sed -e 's/\\n/n ewline\/g' > mkhelp.h
head: head:
echo $(SRCPLUGINDIR) echo $(SRCPLUGINDIR)
echo $(CFLAGS) echo $(CFLAGS)
echo $(CXXFLAGS)
echo $(LDFLAGS) echo $(LDFLAGS)
echo $(HEADERS) echo $(HEADERS)
echo $(PLUGINCFLAGS) echo $(PLUGINCFLAGS)
echo $(PLUGINCXXFLAGS)
.PHONY: compileinlink makeinlinklist mkinlink_h .PHONY: compileinlink makeinlinklist mkinlink_h
compileinlink: $(INLINKALL) compileinlink: $(INLINKALL)
mkinlink_h: inlink.h mkinlink_h: inlink.h
inlinklist: $(CONFIG) inlink.h inlinklist: $(CONFIG) inlink.h
echo $(INLINKALL) > inlinklist echo $(INLINKALL) > inlinklist
makeinlinklist: makeinlinklist:
echo $(INLINKALL) > inlinklist echo $(INLINKALL) > inlinklist
dep: mkinlink_h makeinlinklist dep: mkinlink_h makeinlinklist
cds: cds:
 End of changes. 49 change blocks. 
49 lines changed or deleted 74 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)