Sign in to follow this  

Bugged gnuc Makefile

This topic is 2320 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:
[code]# 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[/code]

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

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

This topic is 2320 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this