1XCOMM ===================================================================== 2XCOMM Imakefile - xjig v2.4 - Helmut.Hoenig@hub.de - July 24, 1996 3XCOMM ===================================================================== 4 5XCOMM set the compiler that you like, 6XCOMM gcc should suit, since the libraries are not needed. But I had problem 7XCOMM with the optimize-options on gcc-2.7.0. You should try to use 8XCOMM optimization on your version, but if it doesn't work, a compiler bug 9XCOMM might be the reason... 10 11XCOMM CXX = gcc -g 12 13XCOMM On some machines (like on linux) you can gain speed by using the 14XCOMM MIT-SHM extension for transfering images to the server via shared 15XCOMM memory. If your system doesn't support that or if you don't see any 16XCOMM enhancement, you could remove the -DUSE_MIT_SHM flag from the CXXFLAGS. 17 18 USE_MIT_SHM = -DUSE_MIT_SHM 19 20XCOMM There is a speed optimization in not doing any checks about crossing 21XCOMM the image boundaries during the texture mapping routines. Some extra 22XCOMM memory therefore surround the image for not crashing due to nonallocated 23XCOMM memory access. You can switch range-checking on by uncommenting the 24XCOMM following flag. 25 26XCOMM RANG_CHECK = -DRANGE_CHECK 27 28XCOMM which default file should be loaded if no option is set 29 30 JIG_DEFAULT = \"tina.gif\" 31 32XCOMM ####################################################################### 33 34 SRCS = xjig.C objects.C stack.C imgbuff.C puzzle.C \ 35 real.C vec2.C vec2list.C mat2.C \ 36 color_mapper.C gif_image.C gifx_image.C 37 38 CXXFLAGS = $(USE_MIT_SHM) $(RANG_CHECK) 39 40 LOCAL_LIBRARIES = $(XLIB) -lm 41 42 OBJS = xjig.o objects.o stack.o imgbuff.o puzzle.o \ 43 real.o vec2.o vec2list.o mat2.o \ 44 color_mapper.o gif_image.o gifx_image.o 45 46 47 48xjig: $(OBJS) $(DEPLIBS) 49 $(RM) $@ 50 $(CXX) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) 51 52InstallProgram(xjig,$(BINDIR)) 53InstallManPage(xjig,$(MANDIR)) 54DependTarget() 55CleanTarget() 56 57 58xjig.o: 59 $(CXX) $(CXXFLAGS) -DJIG_DEFAULT=$(JIG_DEFAULT) -c xjig.C -o $@ 60 61XCOMM .C.o: 62XCOMM $(CXX) $(CFLAGS) -c $< -o $@ 63