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.