Game Development Community

Difines in linux makefiles?

by Luke Jones · in Torque Game Engine · 01/26/2004 (1:00 pm) · 2 replies

Where would i put a define/preprocessor in the linux build/make files?
Something like NO_OGGVORBIS so i can build the map2dif?

#1
01/26/2004 (1:40 pm)
Luke,

Look in engine/targets.torque.mk. Heres my example :

#----------------------------------------
# engine library

...

$(DIR.OBJ)/engine$(EXT.LIB): CFLAGS += $(EXTRAFLAGS) -DNO_OGGVORBIS -DTORQUE_MAX_LIB $(INCLUDES_$(OS))

Add the NO_OGGVORBIS onto the dedicated server too if you don't want vorbis there either :)

You may also want to remove the vorbis .cc files from your build... But thats pretty simple to do :)
#2
01/26/2004 (5:52 pm)
Ah... -DNO_OGGVORBIS instead of -D NO_OGGVORBIS

Thanks!