Changeset 080ef6eb120d94ba7ceaa89dffe9cd284d9a3975
- Timestamp:
- 05/02/06 06:35:49 (6 years ago)
- Children:
- 22b42454812c85824c87192deee05abca95400c4
- Parents:
- 857a6261c268f3b5b020553a4ba51d93d916a9f7
- git-committer:
- flupke <flupke@…> (05/02/06 06:35:49)
- Location:
- bor
- Files:
-
- 7 added
- 1 deleted
- 11 edited
-
Makefile (modified) (1 diff)
-
defs.h (added)
-
gamelib3/Makefile (modified) (1 diff)
-
gamelib3/control.c (modified) (1 diff)
-
gamelib3/defs.h (deleted)
-
gamelib3/joy.h (modified) (1 diff)
-
gamelib3/subsystems/Makefile (modified) (1 diff)
-
gamelib3/subsystems/sdl/Makefile (modified) (1 diff)
-
gamelib3/subsystems/sdl/asmcopy.c (added)
-
gamelib3/subsystems/sdl/joy.c (added)
-
gamelib3/subsystems/sdl/keyboard.c (added)
-
gamelib3/subsystems/sdl/rand32.c (modified) (1 diff)
-
gamelib3/subsystems/sdl/sblaster.c (added)
-
gamelib3/subsystems/sdl/timer.c (added)
-
gamelib3/subsystems/sdl/vga.c (added)
-
gamelib3/subsystems/sdl/video.c (modified) (1 diff)
-
gamelib3/timer.h (modified) (1 diff)
-
gamelib3/video.h (modified) (1 diff)
-
openbor.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bor/Makefile
rff9474e r080ef6e 1 1 OBJECTS = openbor.o 2 2 CFLAGS = -Igamelib3 3 LDFLAGS = -Lgamelib3 -Lgamelib3/subsystems 3 4 4 all: $(OBJECTS) gamelib3/gamelib3.a 5 $(LD) -o openbor $(OBJECTS) gamelib3/gamelib3.a 5 all: 6 $(MAKE) -C gamelib3 7 gcc -o openbor $(OBJECTS) $(LDFLAGS) -lgamelib3 -lsubsystem -lm -lcurses 8 9 openbor: $(OBJECTS) gamelib3 10 gcc -o openbor $(OBJECTS) $(LDFLAGS) -lgamelib3 -lsubsystem -lm -lcurses 11 12 gamelib3: 13 $(MAKE) -C gamelib3 6 14 7 15 clean: 8 16 $(MAKE) -C gamelib3 clean 17 rm -f openbor *.o 9 18 10 gamelib3/gamelib3.a: 11 $(MAKE) -C gamelib319 distclean: clean 20 rm -f settings.sav -
bor/gamelib3/Makefile
r857a626 r080ef6e 1 1 export SUBSYSTEM = sdl 2 2 OBJECTS = adpcm.o anigif.o bitmap.o control.o draw.o font.o loadimg.o packfile.o palette.o savepcx.o screen.o soundmix.o sprite.o spriteq.o ssprite.o texture.o 3 CFLAGS = 3 CFLAGS = -I.. 4 OUTPUT = libgamelib3.a 4 5 5 all: gamelib3.a subsystems/subsystem.a6 6 7 gamelib3.a: $(OBJECTS) 8 ar rcs gamelib3.a$(OBJECTS)7 $(OUTPUT): $(OBJECTS) subsystem 8 ar rcs $(OUTPUT) $(OBJECTS) 9 9 10 subsystem s/subsystem.a:10 subsystem: 11 11 $(MAKE) -C subsystems 12 12 13 13 clean: 14 rm *.o gamelib3.a 14 $(MAKE) -C subsystems clean 15 rm -f *.o $(OUTPUT) 16 -
bor/gamelib3/control.c
r6d347ac r080ef6e 196 196 joy_exit(); 197 197 usejoy = 0; 198 #ifndef __linux__ 198 199 while(kbhit()) getch(); 200 #endif 199 201 } 200 202 -
bor/gamelib3/joy.h
rc6898b6 r080ef6e 6 6 #define JOY_H 7 7 8 #include "defs.h" 8 9 9 10 #define JOY_1 0x0010 -
bor/gamelib3/subsystems/Makefile
r857a626 r080ef6e 1 $(SUBSYSTEM)/$(SUBSYSTEM).a: 1 all: $(SUBSYSTEM)/lib$(SUBSYSTEM).a 2 cp $(SUBSYSTEM)/lib$(SUBSYSTEM).a libsubsystem.a 3 4 $(SUBSYSTEM)/lib$(SUBSYSTEM).a: 2 5 $(MAKE) -C $(SUBSYSTEM) 3 cp $(SUBSYSTEM)/$(SUBSYSTEM).a subsystem.a4 6 5 7 clean: 6 8 $(MAKE) -C dos clean 7 9 $(MAKE) -C sdl clean 8 rm subsystem.a10 rm -f libsubsystem.a -
bor/gamelib3/subsystems/sdl/Makefile
r857a626 r080ef6e 1 OBJECTS = rand32.o 1 OBJECTS = rand32.o video.o vga.o timer.o sblaster.o keyboard.o joy.o asmcopy.o 2 OUTPUT = libsdl.a 3 CFLAGS = -I../../ -I../../../ 2 4 3 all: sdl.a5 all: $(OUTPUT) 4 6 5 sdl.a: $(OBJECTS)6 ar rcs sdl.a$(OBJECTS)7 $(OUTPUT): $(OBJECTS) 8 ar rcs $(OUTPUT) $(OBJECTS) 7 9 8 10 clean: 9 rm *.o sdl.a11 rm -f *.o $(OUTPUT) -
bor/gamelib3/subsystems/sdl/rand32.c
r857a626 r080ef6e 1 1 #include <stdlib.h> 2 #include " ../../rand32.h"2 #include "rand32.h" 3 3 4 4 unsigned int rand32(void) { -
bor/gamelib3/subsystems/sdl/video.c
r857a626 r080ef6e 1 1 #include "video.h" 2 3 s_vram current_videomode; 4 5 int video_set_mode(int width, int height) { 6 return 0; 7 } 8 9 int video_copy_screen(s_screen *screen) { 10 return 0; 11 } 12 13 void video_clearscreen(void) { 14 15 } -
bor/gamelib3/timer.h
r5d72a94 r080ef6e 14 14 */ 15 15 16 16 #include "defs.h" 17 17 18 18 #define PIT_FREQ 1193181 -
bor/gamelib3/video.h
r857a626 r080ef6e 2 2 #define VIDEO_H 3 3 4 #include "defs.h" 5 #include "types.h" 4 6 5 7 extern s_vram current_videomode; -
bor/openbor.c
rb6049a8 r080ef6e 4 4 */ 5 5 6 #include "defs.h" 6 7 7 8 #include <malloc.h> 8 9 #include <stdarg.h> 9 10 #include <string.h> 10 #include <io.h> 11 #ifdef __linux__ 12 # include <asm/io.h> 13 # include <dirent.h> 14 #else 15 # include <io.h> 16 # include <conio.h> 17 # include <direct.h> 18 #endif 11 19 #include <fcntl.h> 12 20 #include <stdio.h> 13 21 #include <stdlib.h> 14 #include <conio.h> 15 #include <direct.h> 16 17 #include "gamelib3\types.h" 18 #include "gamelib3\video.h" 19 #include "gamelib3\vga.h" 20 #include "gamelib3\screen.h" 21 #include "gamelib3\loadimg.h" 22 #include "gamelib3\bitmap.h" 23 #include "gamelib3\sprite.h" 24 #include "gamelib3\spriteq.h" 25 #include "gamelib3\font.h" 26 #include "gamelib3\timer.h" 27 #include "gamelib3\savepcx.h" 28 #include "gamelib3\rand32.h" 29 #include "gamelib3\soundmix.h" 30 #include "gamelib3\sblaster.h" 31 #include "gamelib3\keyboard.h" 32 #include "gamelib3\joy.h" 33 #include "gamelib3\control.h" 34 #include "gamelib3\draw.h" 35 #include "gamelib3\packfile.h" 36 #include "gamelib3\palette.h" 37 #include "gamelib3\anigif.h" 38 #include "gamelib3\texture.h" 22 23 #include "gamelib3/types.h" 24 #include "gamelib3/video.h" 25 #include "gamelib3/vga.h" 26 #include "gamelib3/screen.h" 27 #include "gamelib3/loadimg.h" 28 #include "gamelib3/bitmap.h" 29 #include "gamelib3/sprite.h" 30 #include "gamelib3/spriteq.h" 31 #include "gamelib3/font.h" 32 #include "gamelib3/timer.h" 33 #include "gamelib3/savepcx.h" 34 #include "gamelib3/rand32.h" 35 #include "gamelib3/soundmix.h" 36 #include "gamelib3/sblaster.h" 37 #include "gamelib3/keyboard.h" 38 #include "gamelib3/joy.h" 39 #include "gamelib3/control.h" 40 #include "gamelib3/draw.h" 41 #include "gamelib3/packfile.h" 42 #include "gamelib3/palette.h" 43 #include "gamelib3/anigif.h" 44 #include "gamelib3/texture.h" 39 45 40 46 … … 784 790 785 791 while(direntp = readdir(dirp)){ 786 792 793 #ifdef __linux__ 794 if(direntp->d_type == DT_REG){ 795 #else 787 796 if(!(direntp->d_attr & (_A_SUBDIR | _A_VOLID | _A_SUBDIR))){ 797 #endif 788 798 789 799 // This is a file. Is it a PAK file? … … 3194 3204 3195 3205 level = NULL; 3196 free( holesprite);3206 free((void*)holesprite); 3197 3207 3198 3208 levelpos = 0; … … 10687 10697 // ---------------------------------------------------------------------------- 10688 10698 10689 voidmain(int argc, char **argv){10699 int main(int argc, char **argv){ 10690 10700 10691 10701 int quit = 0; … … 10999 11009 VERSION&0xFFFF 11000 11010 ); 11001 } 11002 11003 11004 11005 11006 11007 11011 11012 return 0; 11013 } 11014 11015 11016 11017 11018 11019
Note: See TracChangeset
for help on using the changeset viewer.
