Advertisement

Bugged gnuc Makefile

Started by August 05, 2011 11:21 AM
0 comments, last by WitchLord 13 years, 3 months ago
Here's a snippet from the gnuc Makefile:
# If you want to build a shared library, then run make with SHARED=1 and VERSION=version
ifdef SHARED
LIB = libangelscript-$(VERSION).so
DEVLIB = libangelscript.so
else
LIB = libangelscript.a
endif


Later:
clean:
$(DELETER) $(OBJ) $(BIN) $(LIBDIR)/$(DEVLIB)


So in case the SHARED env is non-present, $(LIBDIR)/$(DEVLIB) is evaluated to ../../lib/ and 'make clean' fails due to rm's target being a directory. I worked around this by setting DEVLIB to libangelscript.a in the non-SHARED else block.
Thanks. I've applied this fix in the SVN (rev 929).

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement