File: Imakefile

package info (click to toggle)
xjig 2.4-14.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 892 kB
  • sloc: cpp: 10,177; makefile: 1,142; perl: 23
file content (65 lines) | stat: -rw-r--r-- 2,382 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
XCOMM =====================================================================
XCOMM   Imakefile - xjig v2.4 - Helmut.Hoenig@hub.de - July 24, 1996
XCOMM =====================================================================

XCOMM set the compiler that you like,
XCOMM gcc should suit, since the libraries are not needed. But I had problem
XCOMM with the optimize-options on gcc-2.7.0. You should try to use
XCOMM optimization on your version, but if it doesn't work, a compiler bug
XCOMM might be the reason...

XCOMM           CXX = gcc -g

XCOMM On some machines (like on linux) you can gain speed by using the
XCOMM MIT-SHM extension for transfering images to the server via shared
XCOMM memory. If your system doesn't support that or if you don't see any
XCOMM enhancement, you could remove the -DUSE_MIT_SHM flag from the CXXFLAGS.

        USE_MIT_SHM = -DUSE_MIT_SHM

XCOMM There is a speed optimization in not doing any checks about crossing
XCOMM the image boundaries during the texture mapping routines. Some extra
XCOMM memory therefore surround the image for not crashing due to nonallocated
XCOMM memory access. You can switch range-checking on by uncommenting the
XCOMM following flag.

XCOMM    RANG_CHECK = -DRANGE_CHECK

XCOMM which default file should be loaded if no option is set

        JIG_DEFAULT = \"/usr/share/games/xjig/tina.gif\"

XCOMM #######################################################################

               SRCS = xjig.C objects.C stack.C imgbuff.C puzzle.C \
                      real.C vec2.C vec2list.C mat2.C \
                      color_mapper.C base_image.C gif_image.C ximage.C \
                      ppm_image.C jpeg_image.C

           CXXFLAGS = $(USE_MIT_SHM) $(RANG_CHECK)

    LOCAL_LIBRARIES = $(XLIB) -ljpeg -lnetpbm -lm

               OBJS = xjig.o objects.o stack.o imgbuff.o puzzle.o \
                      real.o vec2.o vec2list.o mat2.o \
                      color_mapper.o base_image.o gif_image.o ximage.o \
                      ppm_image.o jpeg_image.o



xjig: $(OBJS) $(DEPLIBS)
	$(RM) $@
	$(CXX) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)

AllTarget(xjig)
InstallProgram(xjig,$(BINDIR))
InstallManPage(xjig,$(MANDIR))
DependTarget()
CleanTarget()


xjig.o:
	$(CXX) $(CXXFLAGS) -DJIG_DEFAULT=$(JIG_DEFAULT) -c xjig.C -o $@

XCOMM .C.o:
XCOMM 	$(CXX) $(CFLAGS) -c $< -o $@