0
0

Here is a small Makefile for those of you looking to, properly, install fmod under UNIX/UNIX-lilke Operating Systems. Sure would have been nice if the FMod team had created one, but here’s hoping they include a Makefile in future release.

[code:3n2j292a]#

Simple Makefile

#

Modify LIB_DIR an HEAD_DIR to fit your needs

#

LIB_DIR = /usr/local/lib/
HEAD_DIR = /usr/local/include/
FMOD = libfmod-3.73.so
LFMOD = libfmod.so
INC = inc/
LHEADERS = $(INC)fmod.h $(INC)fmod_errors.h $(INC)fmoddyn.h $(INC)wincompat.h
IHEADERS = $(HEAD_DIR)fmod.h $(HEAD_DIR)fmod_errors.h $(HEAD_DIR)fmoddyn.h $(HEAD_DIR)wincompat.h

install: $(FMOD) $(LHEADERS)
cp $(FMOD) $(LIB_DIR)
ln -s $(LIB_DIR)$(FMOD) $(LIB_DIR)$(LFMOD)
ldconfig -v
cp $(LHEADERS) $(HEAD_DIR)

uninstall:
rm $(LIB_DIR)$(FMOD) $(LIB_DIR)$(LFMOD)
rm $(IHEADERS)
[/code:3n2j292a]

PS: You should drop this Makefile' under thefmodapifmodapi373linux/api’ directory.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.