#
# HPB_bot makefile for Linux
#
# created: 12/16/2000 botman (botman@mailandnews.com)
#

# the following specifies the path to your MOD...
MOD_DIR = /usr/hlds_l/tfc

CPP = gcc

BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp

CPPFLAGS = ${BASEFLAGS} -m486 -O2 -w -I../engine -I../common -I../pm_shared -traditional
OBJ = neotf.o \
	dll.o engine.o h_export.o linkfunc.o util.o waypoint.o

NeoTF_i486.so: ${OBJ}
	${CPP} -fPIC -shared -o $@ ${OBJ} -ldl
	cp -f NeoTF_i486.so ${MOD_DIR}/dlls

clean:
	-rm -f *.o
	-rm -f *.so	

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

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

