Skip to content

Commit 7d0317a

Browse files
committed
Atari Quake 1.02
1 parent 0126d18 commit 7d0317a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+32133
-31907
lines changed

CHANGES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
1.02
2+
====
3+
4+
- triple-buffer support => smoother, flickerless rendering
5+
6+
- palette update does in vbl only (not waiting for vbl) => smoother rendering
7+
8+
- added "loading icon"
9+
10+
- killed -frametime parameter, replaced with value from 200 Hz system timer
11+
12+
113
1.01
214
====
315

Makefile

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
#
2-
# Quake Makefile for Atari 2.0
2+
# Quake Makefile for Atari 2.1
33
#
4-
# Aug '06 by Miro Kropacek <mikro@hysteria.sk>
4+
# Sep '06 by Miro Kropacek <miro.kropacek@gmail.com>
55
#
66

7-
BASEVERSION=1.09
8-
97
MOUNT_DIR=.
108

119
BUILD_DEBUG_DIR=debug
1210
BUILD_RELEASE_DIR=release
1311

1412
M68KASM_DIR=asm68k
1513

16-
CC=gcc
17-
CC3=gcc-3.3.6
14+
ifeq ($(CROSS),yes)
15+
bin-prefix=m68k-atari-mint-
16+
else
17+
bin-prefix=
18+
endif
19+
20+
NATIVECC=gcc
21+
CC3=/root/download/atari-gcc/bin/gcc
22+
23+
CC=${bin-prefix}gcc
24+
AS=${bin-prefix}as
25+
LD=${bin-prefix}ld
26+
STACK=${bin-prefix}stack
27+
FLAGS=${bin-prefix}flags
28+
STRIP=${bin-prefix}strip -s
1829

1930
BASE_CFLAGS=-Dstricmp=strcasecmp -DM68K_MIX -DM68KASM
20-
RELEASE_CFLAGS=$(BASE_CFLAGS) -g -Wall -m68060 -O3 -fomit-frame-pointer
31+
RELEASE_CFLAGS=$(BASE_CFLAGS) -g -Wall -m68060 -O3
2132
DEBUG_CFLAGS=$(BASE_CFLAGS) -g -Wall -m68060
2233
LDFLAGS=-lm
2334

@@ -147,16 +158,17 @@ QUAKE_M68K_OBJS = \
147158

148159
$(BUILDDIR)/quake.ttp : $(QUAKE_OBJS) $(QUAKE_M68K_OBJS)
149160
$(CC) $(CFLAGS) -o $@ $(QUAKE_OBJS) $(QUAKE_M68K_OBJS) $(LDFLAGS)
150-
stack --fix=512k $(BUILDDIR)/quake.ttp
151-
flags -S $(BUILDDIR)/quake.ttp
161+
$(STACK) --fix=512k $(BUILDDIR)/quake.ttp
162+
$(FLAGS) -S $(BUILDDIR)/quake.ttp
152163
cp $(BUILDDIR)/quake.ttp $(MOUNT_DIR)
164+
$(STRIP) quake.ttp
153165

154166
quakedef68k.i: genasmheaders quakeasmheaders.gen
155-
$(MOUNT_DIR)/genasmheaders quakeasmheaders.gen $@ 1 "$(CC) $(CFLAGS) -I."
167+
$(MOUNT_DIR)/genasmheaders quakeasmheaders.gen $@ 1 "$(NATIVECC) -I."
156168

157169
genasmheaders: genasmheaders.c
158-
$(CC) -o $@ genasmheaders.c
159-
170+
$(NATIVECC) -o $@ genasmheaders.c
171+
160172
####
161173

162174
$(BUILDDIR)/obj/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
@@ -487,6 +499,10 @@ $(MOUNT_DIR)/d_sprite68k.s: $(M68KASM_DIR)/d_sprite68k.s
487499
#############################################################################
488500

489501
clean: clean-debug clean-release
502+
-rm *.BAK *.bak
503+
-rm *68k.s
504+
-rm gendefs gendefs.c genasmheaders quakedef68k.i
505+
-rm quake.ttp
490506

491507
clean-debug:
492508
$(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
@@ -496,8 +512,4 @@ clean-release:
496512

497513
clean2:
498514
-rm -f $(QUAKE_OBJS) $(QUAKE_M68K_OBJS)
499-
-rm *.BAK *.bak
500-
-rm *68k.s
501-
-rm gendefs gendefs.c genasmheaders quakedef68k.i
502515
-rm $(BUILDDIR)/quake.ttp
503-
-rm quake.ttp

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ just a few notes...
55

66
- Makefile is really, really lame ;)
77

8+
- to compile under cross-environment, use make <target> CROSS=yes
9+
810
- to get C only version you need to comment out QUAKE_M68K_OBJS from linker
911
and to remove -DM68K_MIX and -DM68KASM definitions (begin of makefile)
1012

0 commit comments

Comments
 (0)