File: Imakefile

package info (click to toggle)
xbill 2.0-9
  • links: PTS
  • area: main
  • in suites: slink
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,803; makefile: 38; sh: 21
file content (142 lines) | stat: -rw-r--r-- 2,925 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
XBILL_DIR = /usr/lib/games/xbill/
XBILL_SCORES = /var/lib/games/xbill.scores
XCOMM XBILL_DIR = $(HOME)/.xbill/

XCOMM Which widget set?  Motif looks slightly better; Athena is free.

#define Use_Athena
XCOMM #define Use_Motif

XCOMM If you do not have libXpm installed in the standard place, uncomment
XCOMM the statement below and insert the correct path.
XCOMM Make sure xpm.h can be referenced as <X11/xpm.h>

XCOMM XPMINC = -I$(HOME)/include
XPMLIB = -lXpm

XCOMM You shouldn't have to change anything below this line.

XBILL_DEF = -DXBILL_HOME=\"$(XBILL_DIR)\" -DXBILL_SCORE=\"$(XBILL_SCORES)\"

INCLUDES = -I. $(XPMINC)
CXXDEFINES = $(XBILL_DEF) $(DEFS) $(INCS)
CCFLAGS = $(ALLDEFINES) -Wall -g

CXX = g++ $(CCFLAGS)
CCC = $(CXX)
CC = $(CXX)

#ifdef Use_Motif
  WIDGET = motif
  XMLIB = -lXm
  WIDGETLIB = $(XMLIB)
#else
  WIDGET = athena
  WIDGETLIB = $(XAWLIB) $(XMULIB)
#endif

LOCAL_LIBRARIES = $(WIDGETLIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
DEFINES = -D$(WIDGET)

TARGET = xbill

SRCS =	Bucket.cc \
	Cable.cc \
	Computer.cc \
	Game.cc \
	Horde.cc \
	Library.cc \
	Monster.cc \
	Network.cc \
	Scorelist.cc \
	Spark.cc \
	MCursor.cc \
	Picture.cc \
	UI.cc \
	x11-$(WIDGET).cc \
	x11.cc

OBJS =	Bucket.o \
	Cable.o \
	Computer.o \
	Game.o \
	Horde.o \
	Library.o \
	Monster.o \
	Network.o \
	Scorelist.o \
	Spark.o \
	MCursor.o \
	Picture.o \
	UI.o \
	x11-$(WIDGET).o \
	x11.o

XPMS =	pixmaps/about.xpm \
	pixmaps/apple.xpm \
	pixmaps/billA_0.xpm \
	pixmaps/billA_1.xpm \
	pixmaps/billA_10.xpm \
	pixmaps/billA_11.xpm \
	pixmaps/billA_12.xpm \
	pixmaps/billA_2.xpm \
	pixmaps/billA_3.xpm \
	pixmaps/billA_4.xpm \
	pixmaps/billA_5.xpm \
	pixmaps/billA_6.xpm \
	pixmaps/billA_7.xpm \
	pixmaps/billA_8.xpm \
	pixmaps/billA_9.xpm \
	pixmaps/billD_0.xpm \
	pixmaps/billD_1.xpm \
	pixmaps/billD_2.xpm \
	pixmaps/billD_3.xpm \
	pixmaps/billD_4.xpm \
	pixmaps/billL_0.xpm \
	pixmaps/billL_1.xpm \
	pixmaps/billL_2.xpm \
	pixmaps/billR_0.xpm \
	pixmaps/billR_1.xpm \
	pixmaps/billR_2.xpm \
	pixmaps/bsd.xpm \
	pixmaps/bsdcpu.xpm \
	pixmaps/bucket.xpm \
	pixmaps/hurd.xpm \
	pixmaps/icon.xpm \
	pixmaps/linux.xpm \
	pixmaps/logo.xpm \
	pixmaps/maccpu.xpm \
	pixmaps/next.xpm \
	pixmaps/nextcpu.xpm \
	pixmaps/os2.xpm \
	pixmaps/os2cpu.xpm \
	pixmaps/redhat.xpm \
	pixmaps/sgi.xpm \
	pixmaps/sgicpu.xpm \
	pixmaps/spark_0.xpm \
	pixmaps/spark_1.xpm \
	pixmaps/sun.xpm \
	pixmaps/suncpu.xpm \
	pixmaps/toaster.xpm \
	pixmaps/wingdows.xpm

XBMS =	bitmaps/apple.xbm \
	bitmaps/bsd.xbm \
	bitmaps/bucket.xbm \
	bitmaps/hand_down.xbm \
	bitmaps/hand_down_mask.xbm \
	bitmaps/hand_up.xbm \
	bitmaps/hand_up_mask.xbm \
	bitmaps/hurd.xbm \
	bitmaps/linux.xbm \
	bitmaps/next.xbm \
	bitmaps/os2.xbm \
	bitmaps/redhat.xbm \
	bitmaps/sgi.xbm \
	bitmaps/sun.xbm

ComplexProgramTarget($(TARGET))

InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777)
InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps)
InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps)