• Advertisement
Sign in to follow this  

Bugged gnuc Makefile

This topic is 2388 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
LIB = libangelscript.a


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.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement