File: Imakefile

package info (click to toggle)
xball 3.0-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,004 kB
  • ctags: 1,358
  • sloc: ansic: 4,612; sh: 3,415; makefile: 522
file content (215 lines) | stat: -rw-r--r-- 3,846 bytes parent folder | download | duplicates (2)
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/**********************************************************************
 * Imakefile - Imakefile for the xball program
 *
 * Copyright 1993, David Nedde
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for any purpose and without fee is granted
 * provided that the above copyright notice appears in all copies.
 * It is provided "as is" without express or implied warranty.
 **********************************************************************/

/**/# MOTIF  -> Have Motif Widgets
/**/# ATHENA -> Have Athena Widgets

#define MOTIF   
/**/#define ATHENA     


           DELAY = -DDELAY=100       # DELAY ranges from -18 to whatever
/**/#    GRAVITY = -DGRAVITY=8       # Default gravity
/**/# ELASTICITY = -DELASTICY=90     # Default elasticity
          USLEEP = -DHAVE_USLEEP      # Uncomment if usleep installed...
       MYDEFINES = $(DELAY) $(USLEEP)
     CDEBUGFLAGS = -g


M_SRCS = act_area.c
M_OBJS = act_area.o
M_INCS = act_area.h

A_SRCS = filemenu.c
A_OBJS = filemenu.o
A_INCS =

#ifdef MOTIF

         DEFINES = -DMOTIF $(MYDEFINES)
/**/#   MYLDLIBS = -lPW    # Uncomment if you get regcmp and regex undefined
          LDLIBS = -lXm -lXmu -lXt -lX11 $(MYLDLIBS)

TOOL_SRCS = $(M_SRCS)
TOOL_OBJS = $(M_OBJS)
TOOL_INCS = $(M_INCS)

#endif


#ifdef ATHENA

/****** For filemenu *****/
#if defined(SunArchitecture) && OSMajorVersion >= 4
        PREDEFINES = -DSUNOS4
#endif
#ifdef UltrixArchitecture
#ifdef MipsArchitecture
        PREDEFINES = -DBSD -DMIPS
#else
        PREDEFINES = -DBSD
#endif
#endif

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

        SUBDIRS = X11/Xaw_d
LOCAL_LIBRARIES = -lXaw_d
        DEFINES = -DATHENA $(MYDEFINES)
       INCLUDES = -I.
      LDOPTIONS = -LX11/Xaw_d
         LDLIBS = -lXaw_d -lXaw -lXt -lXmu -lXext -lX11

MakeSubdirs($(SUBDIRS))

TOOL_SRCS = $(A_SRCS)
TOOL_OBJS = $(A_OBJS)
TOOL_INCS = $(A_INCS)

#endif

 LINTOPTS = -abhuvz -D_NO_PROTO $(DEFINES)


COMM_SRCS = \
	color_l.c \
	demo.c \
	file_sel.c \
	help.c \
	item.c \
	items.c \
	list.c \
	menu.c \
	misc.c \
	miscx.c \
	room.c \
	scrollbar.c \
	sim.c \
	table.c \
	xball.c \
	xball_sys.c

COMM_OBJS = \
	color_l.o \
	demo.o \
	file_sel.o \
	help.o \
	item.o \
	items.o \
	list.o \
	menu.o \
	misc.o \
	miscx.o \
	room.o \
	scrollbar.o \
	sim.o \
	table.o \
	xball.o \
	xball_sys.o

COMM_INCS = \
	color_l.h \
	demo.h \
	fallback.h \
	file_sel.h \
	help.h \
	intf.h \
	item.h \
	items.h \
	list.h \
	menu.h \
	misc.h \
	miscx.h \
	names.h \
        patchlevel.h \
	room.h \
	scrollbar.h \
	sim.h \
	table.h \
	xball_sys.h

SRCS = $(COMM_SRCS) $(TOOL_SRCS)
OBJS = $(COMM_OBJS) $(TOOL_OBJS)
INCS = $(COMM_INCS) $(TOOL_INCS)

ComplexProgramTarget(xball)

CLASS            = XBall
APP_DEFAULTS_SRC = $(CLASS).ad

InstallAppDefaults($(CLASS))


fallback.h: $(APP_DEFAULTS_SRC)
	gen_fallback $(APP_DEFAULTS_SRC) > $@


DEMOS = demo1 demo2 demo3 demo4 demo5 demo6 demo7 demo8 demo9 demo10 \
        demo11 demo12 demo13 demo14

BITMAPS = \
	good_bitmaps \
	on.xbm \
	off.xbm \
	man.xbm \
	stipple.xbm \
	xball.xbm \
	xball-a.xbm \
	xball-b.xbm \
	xball-l.xbm \
	xball-x.xbm \
	sgi.xbm

MISC = \
	gen_fallback \
	run_demos \
        xball.man \
	README

DRAWING_A_DIRS = \
	X11 \
	X11/Xaw_d

DRAWING_A = \
	X11/Xaw_d/DrawingA.c \
	X11/Xaw_d/DrawingA.h \
	X11/Xaw_d/DrawingAP.h \
	X11/Xaw_d/DrawingA.doc \
	X11/Xaw_d/Imakefile \
	X11/Xaw_d/Makefile.std \
	X11/Xaw_d/Makefile \
        X11/Xaw_d/demo.c \
	X11/Xaw_d/README \
	Imakefile \
	Makefile.std \
	Makefile \
	Make.motif \
	Make.athena

DIST = \
	$(DRAWING_A) \
	$(COMM_SRCS) \
	$(COMM_INCS) \
	$(M_SRCS) \
	$(M_INCS) \
	$(A_SRCS) \
	$(A_INCS) \
	$(APP_DEFAULTS_SRC) \
	$(MISC) \
	$(BITMAPS) \
	$(DEMOS)

shar:
	makekit -s75k -p $(DRAWING_A_DIRS) $(DIST)

tar:
	tar cvf - $(DIST) | compress -v > xball.tar.Z