Author Topic: Compiling on MingW  (Read 1984 times)

pidhash

  • Guest
Compiling on MingW
« on: 17 May 2006, 04:11:25 »
Well I tring to compile glest using mingw compiler.
I began a simple makefile but still not working fine.
If anyone could help me I thank so much.

Makefie --------------------------------------------------------


SOURCE=/c/mystuff/glest/source
XERCES=/c/msys/1.0/xerces-c
LIB_VORBIS_INC=/c/msys/1.0/local/include

INCLUDES=-I $(SOURCE)/shared_lib/include/xml \
   -I $(SOURCE)/shared_lib/include/util \
   -I $(SOURCE)/shared_lib/include/platform/win32 \
   -I $(SOURCE)/shared_lib/include/sound \
   -I $(SOURCE)/shared_lib/include/graphics \
   -I $(SOURCE)/shared_lib/include \
   -I $(SOURCE)/glest_game/world \
   -I $(SOURCE)/glest_game/graphics \
   -I $(SOURCE)/glest_game/type_instances \
   -I $(SOURCE)/glest_game/game \
   -I $(LIB_VORBIS_INC) \
   -I $(XERCES)/include  

# Build shared libs
all:
   c++ -c $(SOURCE)/shared_lib/sources/xml/* $(INCLUDES)
   c++ -c $(SOURCE)/shared_lib/sources/util/* $(INCLUDES)
   c++ -c $(SOURCE)/shared_lib/sources/platform/* $(INCLUDES)
   c++ -c $(SOURCE)/shared_lib/sources/sound/* $(INCLUDES)
   c++ -c $(SOURCE)/shared_lib/sources/graphics/* $(INCLUDES)

# Build game
   c++ -c $(SOURCE)/glest_game/ai/* $(INCLUDES)

   c++ -c $(SOURCE)/glest_game/game/*
   c++ -c $(SOURCE)/glest_game/graphics/*
   c++ -c $(SOURCE)/glest_game/main/*
   c++ -c $(SOURCE)/glest_game/sound/*
   c++ -c $(SOURCE)/glest_game/types/*
   c++ -c $(SOURCE)/glest_game/facilities/*
   c++ -c $(SOURCE)/glest_game/global/*
   c++ -c $(SOURCE)/glest_game/gui/*
   c++ -c $(SOURCE)/glest_game/menu/*
   c++ -c $(SOURCE)/glest_game/type_instances/*
   c++ -c $(SOURCE)/glest_game/world/*

clean:
   rm -f *.o
« Last Edit: 1 January 1970, 00:00:00 by pidhash »