[asterisk-commits] rizzo: trunk r89377 - /trunk/main/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 17 06:33:15 CST 2007


Author: rizzo
Date: Sat Nov 17 06:33:15 2007
New Revision: 89377

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89377
Log:
conditional targets for building the windows version


Modified:
    trunk/main/Makefile

Modified: trunk/main/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/main/Makefile?view=diff&rev=89377&r1=89376&r2=89377
==============================================================================
--- trunk/main/Makefile (original)
+++ trunk/main/Makefile Sat Nov 17 06:33:15 2007
@@ -142,7 +142,17 @@
 minimime/libmmime.a: CHECK_SUBDIR
 	@cd minimime && $(MAKE) libmmime.a
 
-asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a minimime/libmmime.a $(AST_EMBED_LDSCRIPTS)
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+MAIN_TGT:=asterisk.dll
+asterisk: cygload
+	mv cygload.exe asterisk.exe
+
+cygload: asterisk.dll
+else
+MAIN_TGT:=asterisk
+endif
+
+$(MAIN_TGT): $(OBJS) editline/libedit.a db1-ast/libdb1.a minimime/libmmime.a $(AST_EMBED_LDSCRIPTS)
 	@$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c
 	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
 ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),)




More information about the asterisk-commits mailing list