SOLINK=-shared -fpic -L/usr/local/ssl/lib
endif
-ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
- SOLINK=-Xlinker -r
-endif
-
# This is used when generating the doxygen documentation
ifneq ($(DOT),:)
HAVEDOT=yes
endif
# comment to print directories during submakes
-PRINT_DIR:= --no-print-directory
+PRINT_DIR?= --no-print-directory
all: _all
@echo " +--------- Asterisk Build Complete ---------+"
ifneq ($(LOADABLE_MODS),)
_all: $(LOADABLE_MODS:%=%.so)
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+ # linker options and extra libraries for cygwin
+ SOLINK=-Wl,--out-implib=lib$@.a -shared
+ LIBS+=-L../main -lasterisk -L../res
+ # additional libraries in res/
+ LIBS_RES:= -lres_monitor -lres_adsi -lres_features
+endif
endif
ifneq ($(EMBEDDED_MODS),)
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
AST_LIBS+=-lminires -ldl
- ASTLINK+= -shared -Wl,--out-implib,asterisk.dll
+ ASTLINK+= -shared -Wl,--out-implib,libasterisk.a
endif
ifeq ($(OSARCH),NetBSD)
AST_LIBS+=-lpthread -lcrypto -lm -L/usr/pkg/lib $(EDITLINE_LIB)