View Single Post
Re: compile GNU/Linux binaries in Windows
Old
  (#14)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: compile GNU/Linux binaries in Windows - 23-02-2005

Quote:
Originally Posted by Whistler
(note that you MUST have a backslash after each ".o" file; the forum has bugs which ate up all backslashes)
I wonder what it would be like with the [ code ] tags instead...
Code:
CPP = g++ 
TARGET = epb 
BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp 
OPTFLAGS = -DNDEBUG 
CPPFLAGS = ${BASEFLAGS} ${OPTFLAGS} -O2 -w -I"./hlsdk" 
 
OBJ =	 bot.o \\
	bot_chat.o \\
	bot_client.o \\
	bot_combat.o \\ 
	bot_globals.o \\
	bot_sounds.o \\
	compress.o \\
	dll.o \\
	engine.o \\
	util.o \\
	waypoint.o
 
${TARGET}_i386.so: ${OBJ} 
	${CPP} -fPIC -shared -static -o $@ ${OBJ} -ldl -lm 
 
clean: 
	rm -f *.o 
	rm -f *.map 
 
%.o:	%.cpp 
	${CPP} ${CPPFLAGS} -c $< -o $@ 
 
%.o:	%.c 
	${CPP} ${CPPFLAGS} -c $< -o $@
*edit* damn, yer right.
I'd better look into that someday.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote