aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-05 07:28:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>1999-12-05 07:28:29 +0000
commitfd791f2c742d5aefc7524cdc9c62622c4a6a7531 (patch)
tree4f27f20b1f4f90a4f96d99e993a1810fbcdebf6d /pbx
parent18438e3e7ffb91177ce68e3b68e08e4fd260c965 (diff)
Version 0.1.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/pbx/Makefile b/pbx/Makefile
new file mode 100755
index 000000000..dc3ed708c
--- /dev/null
+++ b/pbx/Makefile
@@ -0,0 +1,61 @@
+#
+# Asterisk -- A telephony toolkit for Linux.
+#
+# Makefile for PBX frontends (dynamically loaded)
+#
+# Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC
+#
+# Mark Spencer <markster@linux-support.net>
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License
+#
+
+
+
+PBX_LIBS=pbx_config.so # pbx_gtkconsole.so pbx_kdeconsole.so
+
+# Add GTK console if appropriate
+PBX_LIBS+=$(shell gtk-config --cflags >&/dev/null && echo "pbx_gtkconsole.so")
+# Add KDE Console if appropriate
+PBX_LIBS+=$(shell [ "$$QTDIR" != "" ] && echo "pbx_kdeconsole.so")
+
+
+GTK_FLAGS=`gtk-config --cflags gthread`
+GTK_LIBS=`gtk-config --libs gthread`
+#CXX=egcs
+MOC=$(QTDIR)/bin/moc
+KDE_FLAGS=-I$(KDEDIR)/include -I$(KDEDIR)/include/kde -I$(QTDIR)/include
+KDE_LIBS=-L$(KDEDIR)/lib -L$(QTDIR)/lib -lqt -lkdecore -lkdeui
+CFLAGS+=
+
+KDE_CONSOLE_OBJS=pbx_kdeconsole_main.o pbx_kdeconsole.o
+
+all: $(PBX_LIBS)
+
+clean:
+ rm -f *.so *.o
+
+pbx_gtkconsole.o: pbx_gtkconsole.c
+ $(CC) $(CFLAGS) $(GTK_FLAGS) -c -o $@ $<
+
+pbx_gtkconsole.so: pbx_gtkconsole.o
+ $(CC) -shared -Xlinker -x -o $@ $< $(GTK_LIBS)
+
+pbx_kdeconsole.o: pbx_kdeconsole.cc pbx_kdeconsole.moc
+ $(CXX) $(CFLAGS) $(KDE_FLAGS) -c -o $@ $<
+
+pbx_kdeconsole_main.o: pbx_kdeconsole_main.cc pbx_kdeconsole.h
+ $(CXX) $(CFLAGS) $(KDE_FLAGS) -c -o $@ $<
+
+pbx_kdeconsole.so: $(KDE_CONSOLE_OBJS)
+ $(CC) -shared -Xlinker -x -o $@ $(KDE_CONSOLE_OBJS) $(KDE_LIBS)
+
+%.moc : %.h
+ $(MOC) $< -o $@
+
+%.so : %.o
+ $(CC) -shared -Xlinker -x -o $@ $<
+
+install: all
+ for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done