File: Makefile.Linux

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 (98 lines) | stat: -rw-r--r-- 2,480 bytes parent folder | download | duplicates (4)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

### compiler section
CXX			= g++ -Wall -fstrength-reduce -fpcc-struct-return
CXXFLAGS	   = -g -DUSE_MIT_SHM

### default file to be used, when no options are set

JIG_DEFAULT = \"tina.gif\"

### Directories for include files of X11 and libraries

X_INCLUDE	= /usr/X11R6/include

XLIB_DIR		= /usr/X11R6/lib

###################################################################

LDFLAGS		= -L$(XLIB_DIR)

.SUFFIXES: .C .o

.C.o:
	$(CXX) -I$(X_INCLUDE) $(CXXFLAGS) -c $<

LD	      = $(CXX)

LIBS	      = -lXext -lX11 -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 \
		ppm_image.o \
		jpeg_image.o \
		ximage.o

PROGRAM       = xjig

all:		$(PROGRAM)

$(PROGRAM): $(OBJS)
		$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)

xjig.o:
	 $(CXX) $(CXXFLAGS) -DJIG_DEFAULT=$(JIG_DEFAULT) -c xjig.C -o $@
clean:
		-rm -f core *.o $(PROGRAM)


xjig.o: xjig.C
objects.o: objects.C
stack.o: stack.C
imgbuff.o: imgbuff.C
puzzle.o: puzzle.C
real.o: real.C
vec2.o: vec2.C
vec2list.o: vec2list.C
mat2.o: mat2.C
color_mapper.o: color_mapper.C
base_image.o: base_image.C
gif_image.o: gif_image.C
ppm_image.o: ppm_image.C
jpeg_image.o: jpeg_image.C
ximage.o: ximage.C

# -----------------------------------------------------------------------
# dependencies generated by makedepend

# DO NOT DELETE

base_image.o: base_image.C base_image.H
color_mapper.o: color_mapper.C color_mapper.H
gif_image.o: gif_image.C gif_image.H base_image.H
imgbuff.o: imgbuff.C global.h imgbuff.H
jpeg_image.o: jpeg_image.C jpeg_image.H base_image.H
mat2.o: mat2.C global.h mat2.h real.h vec2.h
objects.o: objects.C global.h objects.H stack.H vec2.h real.h vec2list.h \
  mat2.h ximage.H base_image.H imgbuff.H color_mapper.H puzzle.H rotate.H
ppm_image.o: ppm_image.C ppm_image.H base_image.H
puzzle.o: puzzle.C global.h puzzle.H vec2.h real.h objects.H stack.H \
  vec2list.h mat2.h
real.o: real.C global.h real.h
stack.o: stack.C global.h stack.H objects.H vec2.h real.h vec2list.h \
  mat2.h ximage.H base_image.H
vec2.o: vec2.C global.h vec2.h real.h
vec2list.o: vec2list.C global.h vec2list.h vec2.h real.h mat2.h
ximage.o: ximage.C global.h ximage.H base_image.H color_mapper.H \
  gif_image.H ppm_image.H jpeg_image.H reset_image.H
xjig.o: xjig.C global.h objects.H stack.H vec2.h real.h vec2list.h mat2.h \
  ximage.H base_image.H color_mapper.H imgbuff.H puzzle.H cursor.h