View Single Post
Re: compile GNU/Linux binaries in Windows
Old
  (#8)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: compile GNU/Linux binaries in Windows - 22-02-2005

well you also need to use the "-static" parameter...

here's the work Makefile
PHP Code:
CPP g++
TARGET podbot_mm
BASEFLAGS 
= -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
OPTFLAGS 
= -DNDEBUG
CPPFLAGS 
= ${BASEFLAGS} ${OPTFLAGS} -O2 --I"../metamod-1.17/metamod" -I"../hlsdk/multiplayer/common" -I"../hlsdk/multiplayer/dlls" -I"../hlsdk/multiplayer/engine" -I"../hlsdk/multiplayer/pm_shared"

OBJ =     bot.\
    
bot_chat.\
    
bot_client.\
    
bot_combat.\
    
bot_globals.\
    
bot_sounds.\
    
compress.\
    
dll.\
    
engine.\
    
util.\
    
waypoint.o

${TARGET}_i386.so: ${OBJ}
    ${
CPP} -fPIC -shared -static -$@ ${OBJ} -ldl -lm

clean
:
    
rm -*.o
    rm 
-*.map

%.o:    %.cpp
    
${CPP} ${CPPFLAGS} -$< -$@

%.
o:    %.c
    
${CPP} ${CPPFLAGS} -$< -$@ 
looks like it's still far from being perfect

Last edited by Whistler; 22-02-2005 at 05:24..
  
Reply With Quote