rules.mk: Add support for flexible SO_PREFIX

This commit is contained in:
Jan Lindemann 2009-06-27 16:22:23 +00:00 committed by Jan Lindemann
commit ccf27c7a23

View file

@ -181,10 +181,10 @@ strip.done: $(EXE_ALL)
$(CC) -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
ifeq ($(LIBTYPE),shared)
lib%.so: %.o # $(LIB_SO)
$(SO_PREFIX)%.so: %.o # $(LIB_SO)
$(LD) -shared $(LDFLAGS) $^ -o $@
else
lib%.so: %.o
$(SO_PREFIX)%.so: %.o
$(LD) $(LDFLAGS) $^ -o $@
endif