File tree Expand file tree Collapse file tree 6 files changed +4
-29
lines changed
Expand file tree Collapse file tree 6 files changed +4
-29
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,12 @@ rcsid[] = "$Id: d_main.c,v 1.8 1997/02/03 22:45:09 b1 Exp $";
3333#define FGCOLOR 8
3434
3535
36- #ifdef NORMALUNIX
3736#include < stdio.h>
3837#include < stdlib.h>
3938#include < unistd.h>
4039#include < sys/types.h>
4140#include < sys/stat.h>
4241#include < fcntl.h>
43- #endif
4442
4543
4644#include " doomdef.h"
@@ -580,7 +578,6 @@ void IdentifyVersion (void)
580578 char * plutoniawad;
581579 char * tntwad;
582580
583- #ifdef NORMALUNIX
584581 char *home;
585582 char *doomwaddir;
586583 doomwaddir = getenv (" DOOMWADDIR" );
@@ -627,7 +624,6 @@ void IdentifyVersion (void)
627624 sprintf (basedefault, " %s/.doomrc" , home);
628625 else
629626 sprintf (basedefault, " doomrc" );
630- #endif
631627
632628 if (M_CheckParm (" -shdev" ))
633629 {
Original file line number Diff line number Diff line change @@ -104,9 +104,7 @@ unsigned NetbufferChecksum (void)
104104 c = 0x1234567 ;
105105
106106 // FIXME -endianess?
107- #ifdef NORMALUNIX
108107 return 0 ; // byte order problems
109- #endif
110108
111109 l = (NetbufferSize () - (int )&(((doomdata_t *)0 )->retransmitfrom ))/4 ;
112110 for (i=0 ; i<l ; i++)
Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ default_t defaults[] =
235235 {" show_messages" ,&showMessages, 1 },
236236
237237
238- #ifdef NORMALUNIX
239238 {" key_right" ,&key_right, KEY_RIGHTARROW},
240239 {" key_left" ,&key_left, KEY_LEFTARROW},
241240 {" key_up" ,&key_up, KEY_UPARROW},
@@ -252,8 +251,6 @@ default_t defaults[] =
252251#ifdef SNDSERV
253252 {" sndserver" , (int *) &sndserver_filename, (int ) " sndserver" },
254253 {" mb_used" , &mb_used, 2 },
255- #endif
256-
257254#endif
258255
259256 {" use_mouse" ,&usemouse, 1 },
Original file line number Diff line number Diff line change @@ -3,14 +3,11 @@ CROSS ?= riscv-none-embed-
33CC = $(CROSS ) gcc
44OBJCOPY = $(CROSS ) objcopy
55SIZE = $(CROSS ) size
6- ICEPROG = iceprog
76
7+ # RISC-V specific options
88CFLAGS =-Wall -O2 -march=rv32im -mabi=ilp32 -ffreestanding -flto -fomit-frame-pointer -Wl,--gc-section --specs=nano.specs -I..
99
10- CFLAGS += \
11- -DNORMALUNIX \
12- $(NULL )
13-
10+ # resolution
1411CFLAGS += -DSCREENWIDTH=640 -DSCREENHEIGHT=360
1512
1613include ../sources.mk
@@ -30,8 +27,7 @@ SOURCES_doom_arch := \
3027 i_system.c \
3128 i_video.c \
3229 s_sound.c \
33- console.c \
34- $(NULL )
30+ console.c
3531
3632
3733all : doom-riscv.elf
@@ -47,12 +43,5 @@ clean:
4743% .bin : % .elf
4844 $(OBJCOPY ) -O binary $< $@
4945
50- prog : doom-riscv.bin
51- $(ICEPROG ) -o 1M $<
52-
53- prog_wad : data/doomu.wad
54- $(ICEPROG ) -o 2M $<
55-
56-
57- .PHONY : all clean prog prog_wad
46+ .PHONY : all clean
5847.PRECIOUS : * .elf
Original file line number Diff line number Diff line change @@ -33,14 +33,12 @@ rcsid[] = "$Id: d_main.c,v 1.8 1997/02/03 22:45:09 b1 Exp $";
3333#define FGCOLOR 8
3434
3535
36- #ifdef NORMALUNIX
3736#include < stdio.h>
3837#include < stdlib.h>
3938#include < unistd.h>
4039#include < sys/types.h>
4140#include < sys/stat.h>
4241#include < fcntl.h>
43- #endif
4442
4543
4644#include " doomdef.h"
Original file line number Diff line number Diff line change 2525static const char __attribute__ ((unused))
2626rcsid[] = "$Id: w_wad.c,v 1.5 1997/02/03 16:47:57 b1 Exp $";
2727
28-
29- #ifdef NORMALUNIX
3028#include < ctype.h>
3129#include < sys/types.h>
3230#include < string.h>
@@ -36,7 +34,6 @@ rcsid[] = "$Id: w_wad.c,v 1.5 1997/02/03 16:47:57 b1 Exp $";
3634#include < sys/stat.h>
3735#include < alloca.h>
3836#define O_BINARY 0
39- #endif
4037
4138#include " doomdef.h"
4239#include " doomtype.h"
You can’t perform that action at this time.
0 commit comments