[asterisk-commits] mnicholson: branch mnicholson/asttest r165634 - /team/mnicholson/asttest/astt...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 18 12:22:45 CST 2008
Author: mnicholson
Date: Thu Dec 18 12:22:43 2008
New Revision: 165634
URL: http://svn.digium.com/view/asterisk?view=rev&rev=165634
Log:
* asttest/Makefile, asttest/asttest.c: added
Added:
team/mnicholson/asttest/asttest/
team/mnicholson/asttest/asttest/Makefile (with props)
team/mnicholson/asttest/asttest/asttest.c (with props)
Added: team/mnicholson/asttest/asttest/Makefile
URL: http://svn.digium.com/view/asterisk/team/mnicholson/asttest/asttest/Makefile?view=auto&rev=165634
==============================================================================
--- team/mnicholson/asttest/asttest/Makefile (added)
+++ team/mnicholson/asttest/asttest/Makefile Thu Dec 18 12:22:43 2008
@@ -1,0 +1,82 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Makefile for asttest
+#
+# Copyright (C) 2005-2008, Digium, Inc.
+#
+# Matthew Nicholson <mnicholson at digium.com>
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+# even though we could use '-include makeopts' here, use a wildcard
+# lookup anyway, so that make won't try to build makeopts if it doesn't
+# exist (other rules will force it to be built if needed)
+ifneq ($(wildcard makeopts),)
+ include makeopts
+endif
+
+.PHONY: clean dist-clean distclean test check asterisk
+
+# Basic set of sources and flags/libraries/includes
+OBJS:=asttest.o
+CFLAGS:=-g -c -D_GNU_SOURCE -Wall
+T_LIBS:=-llua5.1
+
+AST_INSTALL_DIR = $(PWD)/asterisk
+
+
+all: test
+
+#$(OBJS) $(C_OBJS): autoconfig.h menuselect.h
+#
+#makeopts autoconfig.h: autoconfig.h.in makeopts.in
+# @./configure $(CONFIGURE_SILENT) CC= LD= AR= CFLAGS=
+#
+#ifdef C_OBJS
+#menuselect_curses.o: CFLAGS+=$(C_INCLUDE)
+#cmenuselect: $(OBJS) $(C_OBJS)
+# $(CC) -o $@ $^ $(C_LIBS)
+#else
+#cmenuselect:
+#endif
+#
+#ifdef G_OBJS
+#menuselect_gtk.o: CFLAGS+=$(G_INCLUDE)
+#gmenuselect: $(OBJS) $(G_OBJS)
+# $(CC) -o $@ $^ $(G_LIBS)
+#else
+#gmenuselect:
+#endif
+#
+#ifdef N_OBJS
+#menuselect_newt.o: CFLAGS+=$(N_INCLUDE)
+#nmenuselect: $(OBJS) $(N_OBJS)
+# $(CC) -o $@ $^ $(N_LIBS)
+#else
+#nmenuselect:
+#endif
+
+asterisk:
+ cd ../ && ./configure --enable-dev-mode --prefix=$(AST_INSTALL_DIR) --localstatedir=$(AST_INSTALL_DIR)/var
+ $(MAKE) -C ../ install
+
+asttest: $(OBJS) $(T_OBJS)
+ $(CC) -o $@ $^ $(T_LIBS)
+
+check: test
+tests: test
+test: asttest asterisk
+ ./asttest tests
+
+clean:
+ rm -f asttest $(OBJS) $(M_OBJS) $(C_OBJS) $(G_OBJS) $(N_OBJS)
+ rm -rf $(AST_INSTALL_DIR)
+
+dist-clean: distclean
+
+distclean: clean
+ rm -f autoconfig.h config.status config.log makeopts
+ rm -rf autom4te.cache
Propchange: team/mnicholson/asttest/asttest/Makefile
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: team/mnicholson/asttest/asttest/Makefile
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: team/mnicholson/asttest/asttest/Makefile
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: team/mnicholson/asttest/asttest/asttest.c
URL: http://svn.digium.com/view/asterisk/team/mnicholson/asttest/asttest/asttest.c?view=auto&rev=165634
==============================================================================
--- team/mnicholson/asttest/asttest/asttest.c (added)
+++ team/mnicholson/asttest/asttest/asttest.c Thu Dec 18 12:22:43 2008
@@ -1,0 +1,24 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 1999 - 2008, Digium, Inc.
+ *
+ * Matthew Nichiolson <mnicholson at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+#include <stdio.h>
+
+
+int main(int argv, char *argc[]) {
+ return 0;
+}
Propchange: team/mnicholson/asttest/asttest/asttest.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: team/mnicholson/asttest/asttest/asttest.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: team/mnicholson/asttest/asttest/asttest.c
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list