Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
25227641
Commit
25227641
authored
Apr 18, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a makefile, some cleanup to id_ca.c
parent
f8516336
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
372 deletions
+60
-372
Makefile
src/Makefile
+32
-0
id_ca.c
src/id_ca.c
+18
-345
id_ca.h
src/id_ca.h
+5
-7
id_heads.h
src/id_heads.h
+2
-9
wl_draw.c
src/wl_draw.c
+3
-11
No files found.
src/Makefile
0 → 100644
View file @
25227641
CC
=
gcc
#CFLAGS = -Wall -O6 -fomit-frame-pointer -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -DUSEVGA
CFLAGS
=
-g
-DUSEVGA
#CFLAGS = -g -Wall -DUSEVGA -DDEBUG
#CFLAGS = -g -DUSEVGA -DDEBUG
#CFLAGS = -g -pg -DDEBUG
OBJS
=
objs.o id_ca.o id_in.o id_sd.o id_vl.o id_vh.o wl_scale.o wl_draw.o
\
wl_act1.o wl_act2.o wl_agent.o wl_game.o wl_inter.o wl_menu.o
\
wl_play.o wl_state.o wl_main.o wl_debug.o
#LFLAGS = -lm -lvga -pg
LFLAGS
=
-lm
-lvga
#LFLAGS = /home/relnev/midas/lib/linux/gcdebug/libmidas.a -lpthread -lm -lvga
# /home/relnev/ElectricFence-2.0.5/libefence.a -lm -lvga
NASM
=
nasm
.SUFFIXES
:
.asm
all
:
wolf3d
.asm.o
:
$(NASM)
-f
elf
-o
$@
$<
wolf3d
:
$(OBJS)
gcc
-o
wolf3d
$(OBJS)
$(LFLAGS)
clean
:
-
rm
-rf
wolf3d
*
.o
distclean
:
clean
rm
-rf
*
~ DEADJOE
src/id_ca.c
View file @
25227641
This diff is collapsed.
Click to expand it.
src/id_ca.h
View file @
25227641
...
...
@@ -49,11 +49,11 @@ extern long *audiostarts; // array of offsets in audio / audiot
//===========================================================================
boolean
CA_FarRead
(
int
handle
,
byte
*
dest
,
long
length
);
boolean
CA_FarWrite
(
int
handle
,
byte
*
source
,
long
length
);
boolean
CA_ReadFile
(
char
*
filename
,
memptr
*
ptr
);
boolean
CA_LoadFile
(
char
*
filename
,
memptr
*
ptr
);
boolean
CA_WriteFile
(
char
*
filename
,
void
*
ptr
,
long
length
);
boolean
CA_FarRead
(
int
handle
,
byte
*
dest
,
long
length
);
boolean
CA_FarWrite
(
int
handle
,
byte
*
source
,
long
length
);
boolean
CA_ReadFile
(
char
*
filename
,
memptr
*
ptr
);
boolean
CA_LoadFile
(
char
*
filename
,
memptr
*
ptr
);
boolean
CA_WriteFile
(
char
*
filename
,
void
*
ptr
,
long
length
);
long
CA_RLEWCompress
(
unsigned
*
source
,
long
length
,
unsigned
*
dest
,
unsigned
rlewtag
);
...
...
@@ -136,8 +136,6 @@ void CA_CacheScreen (int chunk);
//==========================================================================
typedef
void
*
memptr
;
typedef
struct
{
long
nearheap
,
farheap
,
EMSmem
,
XMSmem
,
mainmem
;
...
...
src/id_heads.h
View file @
25227641
#ifndef __ID_HEADS_H__
#define __ID_HEADS_H__
#include <alloc.h>
#include <ctype.h>
#include <dos.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <mem.h>
#include <process.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <values.h>
#include <dir.h>
#include "version.h"
...
...
@@ -82,6 +76,8 @@ typedef unsigned int word;
typedef
unsigned
long
longword
;
typedef
byte
*
Ptr
;
typedef
void
*
memptr
;
typedef
struct
{
int
x
,
y
;
...
...
@@ -93,9 +89,6 @@ typedef struct
#define nil ((void *)0)
#include "id_mm.h"
#include "id_pm.h"
#include "id_ca.h"
#include "id_vl.h"
#include "id_vh.h"
...
...
src/wl_draw.c
View file @
25227641
/
/ WL_DRAW.C
/
* wl_draw.c */
#include "WL_DEF.H"
#include <DOS.H>
#pragma hdrstop
//#define DEBUGWALLS
//#define DEBUGTICS
#include "wl_def.h"
#include <dos.h>
/*
=============================================================================
...
...
@@ -29,11 +25,7 @@
*/
#ifdef DEBUGWALLS
unsigned
screenloc
[
3
]
=
{
0
,
0
,
0
};
#else
unsigned
screenloc
[
3
]
=
{
PAGE1START
,
PAGE2START
,
PAGE3START
};
#endif
unsigned
freelatch
=
FREESTART
;
long
lasttimecount
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment