parent
cdb3e36c02
commit
02cfd6e6a2
|
@ -132,11 +132,11 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(OS),Windows_NT)
|
ifneq ($(OS),Windows_NT)
|
||||||
# todo: something is not right here how can we avoid explicit .dll suffix?
|
# todo: something is not right here how can we avoid explicit suffix?
|
||||||
# why does GCC use .exe on Windows withtout it?!
|
# should not gcc figure it out based on 'shared' option?
|
||||||
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).dll
|
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).dll
|
||||||
else
|
else
|
||||||
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT)
|
SHARED_OUTPUT_OPT = $(SHARED_OUTPUT).so
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(BINARY_OUTPUT): $(OBJS)
|
$(BINARY_OUTPUT): $(OBJS)
|
||||||
|
@ -150,7 +150,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(SHARED_OUTPUT): $(OBJS)
|
$(SHARED_OUTPUT): $(OBJS)
|
||||||
@echo Linking shared library $@
|
@echo Linking shared library $@ output $SHARED_OUTPUT_OPT
|
||||||
@$(LD) $(OBJS) $(LDFLAGS) $(LIBS) -o $SHARED_OUTPUT_OPT -shared
|
@$(LD) $(OBJS) $(LDFLAGS) $(LIBS) -o $SHARED_OUTPUT_OPT -shared
|
||||||
|
|
||||||
clean: CLEAN_RULE_HOOK
|
clean: CLEAN_RULE_HOOK
|
||||||
|
|
Loading…
Reference in New Issue