Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140081
Collapse All | Expand All

(-)xlander/Makefile (+28 lines)
Line 0 Link Here
1
#CC = gcc -Wall
2
CC = cc
3
#CFLAGS = -O
4
#INCLUDES = -I/usr/local/include
5
#LDFLAGS = -s -L/usr/local/lib
6
LIBS = -lm -lX11
7
TARGET = xlander
8
SRCS = xlander.c globals.c initialize.c functions.c instrument.c game.c \
9
	resource.c
10
OBJS = xlander.o globals.o initialize.o functions.o instrument.o game.o \
11
	resource.o
12
ALL = README Imakefile Makefile.std xlander.man $(SRCS) xlander.h globals.h \
13
	patchlevel.h
14
15
all:	$(TARGET)
16
17
$(TARGET):	$(OBJS)
18
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
19
20
.c.o:
21
	$(CC) $(CFLAGS) $(INCLUDES) -c $*.c
22
23
clean:
24
	rm -f $(OBJS) $(TARGET) core
25
26
shar:	$(ALL)
27
	shar -o $(TARGET).shar $(ALL)
28
(-)xlander/xlander.h (-6 / +9 lines)
Lines 41-50 Link Here
41
#define HALF_WORLD_LENGTH (WORLD_LENGTH >> 1)
41
#define HALF_WORLD_LENGTH (WORLD_LENGTH >> 1)
42
#define HALF_WORLD_WIDTH (WORLD_WIDTH >> 1)
42
#define HALF_WORLD_WIDTH (WORLD_WIDTH >> 1)
43
#define PIXELS_PER_FOOT 6        /* Number of pixels per foot */
43
#define PIXELS_PER_FOOT 6        /* Number of pixels per foot */
44
#define TICKS_PER_SECOND 3       /* Number of frames per second */
44
#define TICKS_PER_SECOND 30       /* Number of frames per second */
45
#define ACCELERATION -5.310      /* Acceleration of gravity (ft/sec^2) */
45
#define ACCELERATION -5.310      /* Acceleration of gravity (ft/sec^2) */
46
#define RETRO 35.0               /* Acceleration due to retroactive thruster */
46
#define RETRO 35.0               /* Acceleration due to retroactive thruster */
47
#define LATERAL_THRUST 5.0       /* Acceleration due to lateral thruster */
47
#define LATERAL_THRUST 1.0       /* Acceleration due to lateral thruster */
48
#ifndef PI
48
#ifndef PI
49
#define PI 3.1415926535897932384
49
#define PI 3.1415926535897932384
50
#endif
50
#endif
Lines 53-61 Link Here
53
#define TWOPI 6.2831853
53
#define TWOPI 6.2831853
54
#define VERT_SPEED 30.0          /* Maximum vertical speed without crashing */
54
#define VERT_SPEED 30.0          /* Maximum vertical speed without crashing */
55
#define LAT_SPEED 30.0           /* Maximum lateral speed without crashing */
55
#define LAT_SPEED 30.0           /* Maximum lateral speed without crashing */
56
#define RETRO_BURN 1.6           /* Retroactive thruster fuel consumption */
56
#define RETRO_BURN 0.16           /* Retroactive thruster fuel consumption */
57
#define LATERAL_BURN 0.4         /* Lateral thruster fuel consumption */
57
#define LATERAL_BURN 0.04         /* Lateral thruster fuel consumption */
58
#define FULL_TANK 320            /* Full tank of fuel */
58
#define FULL_TANK 320           /* Full tank of fuel */
59
#define MAX_VELOC 640.0          /* Maximum velocity */
59
#define MAX_VELOC 640.0          /* Maximum velocity */
60
60
61
#define LANDER_WIDTH 600
61
#define LANDER_WIDTH 600
Lines 109-121 Link Here
109
109
110
DATABASE *DBInit (), *DBInitFromData (), *LoadDataBase ();
110
DATABASE *DBInit (), *DBInitFromData (), *LoadDataBase ();
111
void DBInsert (), DBFinish (), DBPlot (), SwapBuffers (), exit ();
111
void DBInsert (), DBFinish (), DBPlot (), SwapBuffers (), exit ();
112
113
/*
112
#ifndef _AIX
114
#ifndef _AIX
113
char *malloc ();
115
char *malloc ();
114
#endif
116
#endif
115
double atof ();
117
double atof ();
116
#ifdef sun
118
#ifdef sun 
117
int printf (), fprintf (), time ();
119
int printf (), fprintf (), time ();
118
#endif
120
#endif
121
*/
119
122
120
/*
123
/*
121
 * Transform x,y coordinate pairs from world space to position on
124
 * Transform x,y coordinate pairs from world space to position on

Return to bug 140081