Hi List!
As I'm often switch between GTKversion 1 and 2, to test newly
implemented GTK things, it's annyoing to switch between the versions:
a) rename ethereal.exe to something like ethereal_gtk1.exe (in case to
be able to compare things between GTK1 and 2 later)
b) change GTK_VERSION in config.nmake to the required version
b) clean GTK objects "cd gtk; nmake -f Makefile.nmake distclean"
c) generate GTK objects again
I found a way, being able to generate both versions with one make run.
It will do the following:
a) generate everything else like before (including the gtk target)
b) make a dir gtk2.tmp and copy all the files needed to compile using:
cd gtk
cp --update --preserve Makefile.* *.c *.h ..\gtk2.tmp
this will copy only the files, that are newer than the target file, or
if the target file doesn't exist
c) prelink the libui.lib in gtk2.tmp
d) link ethereal2.exe
to b) I didn't find a way to tell cl.exe to get multiple files from dir1
and put the objects into dir2 :-(
If thats possible somehow, the copying might not be needed.
These changes are needed:
a) config.nmake now makes two sets of GTK settings:
GTK1_DIR, GTK1_CFLAGS, GTK1_LIBS
GTK2_DIR, GTK2_CFLAGS, GTK2_LIBS
User can set, which version is needed, setting GTK1_DIR or GTK2_DIR or both.
b) Makefile.nmake now has additional targets gtk2 and ethereal2.exe
If I won't get any veto, I will check in these changes.
Regards, ULFL