summaryrefslogtreecommitdiffstats
path: root/VisualNaCro/Makefile.am
diff options
context:
space:
mode:
authordscho <dscho>2005-01-14 14:44:49 +0000
committerdscho <dscho>2005-01-14 14:44:49 +0000
commit7ad74688557216e70c749ec567f17604c82bf9c6 (patch)
tree7085a9e9236f7e8ef615b1fa7147528729ef7b24 /VisualNaCro/Makefile.am
parent2cd3c824c6422ae9cfc9dd8fcdbd5601c3edd9c0 (diff)
downloadlibtdevnc-7ad74688557216e70c749ec567f17604c82bf9c6.tar.gz
libtdevnc-7ad74688557216e70c749ec567f17604c82bf9c6.zip
VisualNacro, a visual macro recorder for VNC. Alpha version
Diffstat (limited to 'VisualNaCro/Makefile.am')
-rw-r--r--VisualNaCro/Makefile.am50
1 files changed, 50 insertions, 0 deletions
diff --git a/VisualNaCro/Makefile.am b/VisualNaCro/Makefile.am
new file mode 100644
index 0000000..202b511
--- /dev/null
+++ b/VisualNaCro/Makefile.am
@@ -0,0 +1,50 @@
+INTERFACE=nacro.h
+SRCS=nacro.c
+OBJS=nacro.o
+ISRCS=nacro_wrap.c
+IOBJS=nacro_wrap.o
+TARGET=nacro
+LIBS= @LIBVNCSERVERLIBS@ -lvncclient
+
+nacro_CFLAGS= @LIBVNCSERVERCFLAGS@
+
+SWIGOPT=
+
+EXTRA_DIST=autogen.sh $(INTERFACE) $(SRCS) $(ISRCS) recorder.pl
+
+all: $(LIBPREFIX)$(TARGET)$(SO)
+
+# the following is borrowed from SWIG
+
+SWIG= @SWIG@
+
+##################################################################
+##### PERL 5 ######
+##################################################################
+
+# You need to set this variable to the Perl5 directory containing the
+# files "perl.h", "EXTERN.h" and "XSUB.h". With Perl5.003, it's
+# usually something like /usr/local/lib/perl5/arch-osname/5.003/CORE.
+
+PERL5_INCLUDE= @PERL5EXT@
+
+# Extra Perl specific dynamic linking options
+PERL5_DLNK = @PERL5DYNAMICLINKING@
+PERL5_CCFLAGS = @PERL5CCFLAGS@
+
+# ----------------------------------------------------------------
+# Build a Perl5 dynamically loadable module (C)
+# ----------------------------------------------------------------
+
+$(ISRCS): $(INTERFACE)
+ $(SWIG) -perl5 $(SWIGOPT) $(INTERFACE)
+
+$(OBJS): $(SRCS)
+ $(CC) -c -Dbool=char $(CCSHARED) $(CFLAGS) -o $@ $^ $(LIBVNCSERVERCFLAGS) $(INCLUDES) -I$(PERL5_INCLUDE)
+
+$(IOBJS): $(ISRCS)
+ $(CC) -c -Dbool=char $(CCSHARED) $(CFLAGS) -o $@ $^ $(INCLUDES) $(PERL5_CCFLAGS) -I$(PERL5_INCLUDE)
+
+$(LIBPREFIX)$(TARGET)$(SO): $(OBJS) $(IOBJS)
+ $(LDSHARED) $(OBJS) $(IOBJS) $(PERL5_DLNK) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(SO)
+