[Scummvm-cvs-logs] CVS: scummvm Makefile.mingw,NONE,1.1 scummsys.h,1.17,1.18

Travis Howell kirben at users.sourceforge.net
Fri Feb 15 16:29:06 CET 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv20663

Modified Files:
	scummsys.h 
Added Files:
	Makefile.mingw 
Log Message:

Added mingw support and makefile.


--- NEW FILE: Makefile.mingw ---
# Where is scummvm will be installed
SCUMMVMPATH=C:/scummvm
SRC=.

### Modify these paths
SDL_CFLAGS=-I$(SRC)/sdl/include
SDL_LIBS=-L$(SRC)/sdl/lib -lSDLmain -lSDL

CC      = gcc
CFLAGS  = -g -Wno-multichar
DEFINES = -DUSE_ADLIB
LDFLAGS :=
INCLUDES:= $(SDL_CFLAGS) -I./ -I./sound
CPPFLAGS= $(DEFINES) $(INCLUDES)
LIBS	= -lmingw32 $(SDL_LIBS) -mwindows -mconsole

EXEC=scummvm.exe

INCS	= scumm.h scummsys.h stdafx.h

OBJS	= actor.o boxes.o costume.o gfx.o object.o resource.o \
	saveload.o script.o scummvm.o sound.o string.o \
	sys.o verbs.o sdl.o script_v1.o script_v2.o debug.o gui.o \
	sound/imuse.o sound/fmopl.o sound/adlib.o sound/gmidi.o debugrl.o \
	akos.o

.cpp.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o

all: $(EXEC)

$(EXEC): $(OBJS)
	$(CC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) $(EXEC)

install:   $(EXEC)
	mkdir -p $(SCUMMVMPATH)
	strip $(EXEC) -o $(SCUMMVMPATH)/$(EXEC)

dist:   install
	cp copying.txt $(SCUMMVMPATH)/copying.txt
	cp readme.txt $(SCUMMVMPATH)/readme.txt
	cp whatsnew.txt $(SCUMMVMPATH)/whatsnew.txt
	cp SDL/README-SDL.txt $(SCUMMVMPATH)/README-SDL.txt
	cp SDL/lib/SDL.dll $(SCUMMVMPATH)/SDL.dll
	u2d $(SCUMMVMPATH)/readme.txt

Index: scummsys.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scummsys.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** scummsys.h	2 Feb 2002 14:00:43 -0000	1.17
--- scummsys.h	16 Feb 2002 00:28:37 -0000	1.18
***************
*** 75,78 ****
--- 75,101 ----
  #define END_PACK_STRUCTS   pack(pop)
  
+ #elif defined(__MINGW32__)
+ 
+ #define scumm_stricmp stricmp
+ #define CHECK_HEAP
+ #define SCUMM_LITTLE_ENDIAN
+ 
+ #define FORCEINLINE inline
+ #define NORETURN __attribute__((__noreturn__))
+ #define GCC_PACK __attribute__((packed))
+ #define _HEAPOK 0
+ 
+ typedef unsigned char byte;
+ typedef unsigned char uint8;
+ typedef unsigned short uint16;
+ typedef unsigned long uint32;
+ typedef unsigned int uint;
+ typedef signed char int8;
+ typedef signed short int16;
+ typedef signed long int32;
+ 
+ #define START_PACK_STRUCTS pack (push,1)
+ #define END_PACK_STRUCTS   pack(pop)
+ 
  #elif (defined(UNIX) || defined(__APPLE__))
  





More information about the Scummvm-git-logs mailing list