Changeset 080ef6eb120d94ba7ceaa89dffe9cd284d9a3975


Ignore:
Timestamp:
05/02/06 06:35:49 (6 years ago)
Author:
flupke <flupke@…>
Children:
22b42454812c85824c87192deee05abca95400c4
Parents:
857a6261c268f3b5b020553a4ba51d93d916a9f7
git-committer:
flupke <flupke@…> (05/02/06 06:35:49)
Message:

Tout compile sans erreur, il ne reste plus qu'à combler les trous dans gamelib3/subsystems/sdl
Les makefile sont pas terribles non plus, à finir

git-svn-id:  http://kawa.selfip.org/svn/projects@299 532e76a9-45ae-c241-9c6d-8309ac6440cd

Location:
bor
Files:
7 added
1 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • bor/Makefile

    rff9474e r080ef6e  
    11OBJECTS = openbor.o 
    22CFLAGS = -Igamelib3 
     3LDFLAGS = -Lgamelib3 -Lgamelib3/subsystems 
    34 
    4 all: $(OBJECTS) gamelib3/gamelib3.a 
    5         $(LD) -o openbor $(OBJECTS) gamelib3/gamelib3.a 
     5all: 
     6        $(MAKE) -C gamelib3 
     7        gcc -o openbor $(OBJECTS) $(LDFLAGS) -lgamelib3 -lsubsystem -lm -lcurses 
     8 
     9openbor: $(OBJECTS) gamelib3 
     10        gcc -o openbor $(OBJECTS) $(LDFLAGS) -lgamelib3 -lsubsystem -lm -lcurses 
     11 
     12gamelib3: 
     13        $(MAKE) -C gamelib3 
    614 
    715clean: 
    816        $(MAKE) -C gamelib3 clean 
     17        rm -f openbor *.o 
    918 
    10 gamelib3/gamelib3.a: 
    11         $(MAKE) -C gamelib3 
     19distclean: clean 
     20        rm -f settings.sav 
  • bor/gamelib3/Makefile

    r857a626 r080ef6e  
    11export SUBSYSTEM = sdl 
    22OBJECTS = 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 = 
     3CFLAGS = -I.. 
     4OUTPUT = libgamelib3.a 
    45 
    5 all: gamelib3.a subsystems/subsystem.a 
    66 
    7 gamelib3.a: $(OBJECTS) 
    8         ar rcs gamelib3.a $(OBJECTS) 
     7$(OUTPUT): $(OBJECTS) subsystem 
     8        ar rcs $(OUTPUT) $(OBJECTS) 
    99 
    10 subsystems/subsystem.a:  
     10subsystem:  
    1111        $(MAKE) -C subsystems 
    1212 
    1313clean: 
    14         rm *.o gamelib3.a 
     14        $(MAKE) -C subsystems clean      
     15        rm -f *.o $(OUTPUT) 
     16 
  • bor/gamelib3/control.c

    r6d347ac r080ef6e  
    196196        joy_exit(); 
    197197        usejoy = 0; 
     198#ifndef __linux__ 
    198199        while(kbhit()) getch(); 
     200#endif 
    199201} 
    200202 
  • bor/gamelib3/joy.h

    rc6898b6 r080ef6e  
    66#define JOY_H 
    77 
     8#include "defs.h" 
    89 
    910#define         JOY_1           0x0010 
  • bor/gamelib3/subsystems/Makefile

    r857a626 r080ef6e  
    1 $(SUBSYSTEM)/$(SUBSYSTEM).a: 
     1all: $(SUBSYSTEM)/lib$(SUBSYSTEM).a 
     2        cp $(SUBSYSTEM)/lib$(SUBSYSTEM).a libsubsystem.a 
     3 
     4$(SUBSYSTEM)/lib$(SUBSYSTEM).a: 
    25        $(MAKE) -C $(SUBSYSTEM) 
    3         cp $(SUBSYSTEM)/$(SUBSYSTEM).a subsystem.a 
    46 
    57clean: 
    68        $(MAKE) -C dos clean 
    79        $(MAKE) -C sdl clean 
    8         rm subsystem.a  
     10        rm -f libsubsystem.a  
  • bor/gamelib3/subsystems/sdl/Makefile

    r857a626 r080ef6e  
    1 OBJECTS = rand32.o 
     1OBJECTS = rand32.o video.o vga.o timer.o sblaster.o keyboard.o joy.o asmcopy.o 
     2OUTPUT = libsdl.a 
     3CFLAGS =  -I../../ -I../../../ 
    24 
    3 all: sdl.a 
     5all: $(OUTPUT) 
    46 
    5 sdl.a: $(OBJECTS) 
    6         ar rcs sdl.a $(OBJECTS) 
     7$(OUTPUT): $(OBJECTS) 
     8        ar rcs $(OUTPUT) $(OBJECTS) 
    79 
    810clean: 
    9         rm *.o sdl.a  
     11        rm -f *.o $(OUTPUT) 
  • bor/gamelib3/subsystems/sdl/rand32.c

    r857a626 r080ef6e  
    11#include <stdlib.h> 
    2 #include "../../rand32.h" 
     2#include "rand32.h" 
    33 
    44unsigned int rand32(void) { 
  • bor/gamelib3/subsystems/sdl/video.c

    r857a626 r080ef6e  
    1   
     1#include "video.h" 
     2 
     3s_vram current_videomode; 
     4 
     5int video_set_mode(int width, int height) { 
     6  return 0; 
     7} 
     8 
     9int video_copy_screen(s_screen *screen) { 
     10  return 0; 
     11} 
     12 
     13void video_clearscreen(void) { 
     14 
     15} 
  • bor/gamelib3/timer.h

    r5d72a94 r080ef6e  
    1414*/ 
    1515 
    16  
     16#include "defs.h" 
    1717 
    1818#define         PIT_FREQ        1193181 
  • bor/gamelib3/video.h

    r857a626 r080ef6e  
    22#define VIDEO_H 
    33 
     4#include "defs.h" 
     5#include "types.h" 
    46 
    57extern s_vram current_videomode; 
  • bor/openbor.c

    rb6049a8 r080ef6e  
    44*/ 
    55 
     6#include "defs.h" 
    67 
    78#include <malloc.h> 
    89#include <stdarg.h> 
    910#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 
    1119#include <fcntl.h> 
    1220#include <stdio.h> 
    1321#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" 
    3945 
    4046 
     
    784790 
    785791    while(direntp = readdir(dirp)){ 
    786  
     792       
     793#ifdef __linux__ 
     794        if(direntp->d_type == DT_REG){ 
     795#else 
    787796        if(!(direntp->d_attr & (_A_SUBDIR | _A_VOLID | _A_SUBDIR))){ 
     797#endif 
    788798 
    789799            // This is a file. Is it a PAK file? 
     
    31943204 
    31953205    level = NULL; 
    3196     free(holesprite); 
     3206    free((void*)holesprite); 
    31973207 
    31983208    levelpos = 0; 
     
    1068710697// ---------------------------------------------------------------------------- 
    1068810698 
    10689 void main(int argc, char **argv){ 
     10699int main(int argc, char **argv){ 
    1069010700 
    1069110701    int quit = 0; 
     
    1099911009        VERSION&0xFFFF 
    1100011010    ); 
    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.