summaryrefslogtreecommitdiff
path: root/mcast/client/mingw
diff options
context:
space:
mode:
authorLars Heer <l.heer@gmx.de>2013-09-18 05:50:03 +0200
committerLars Heer <l.heer@gmx.de>2013-09-18 05:50:03 +0200
commitccf6e0f9c6b0481ed13e0f4794e3fbead750f385 (patch)
treeed86efb54f7ee41edfba5c89ca519b5fd10aa0d5 /mcast/client/mingw
downloadvdr-plugin-mcli-ccf6e0f9c6b0481ed13e0f4794e3fbead750f385.tar.gz
vdr-plugin-mcli-ccf6e0f9c6b0481ed13e0f4794e3fbead750f385.tar.bz2
added vdr-plugin-mcli-0.0.1+svn20120927
Diffstat (limited to 'mcast/client/mingw')
-rw-r--r--mcast/client/mingw/.svn/entries96
-rw-r--r--mcast/client/mingw/.svn/text-base/Makefile.svn-base55
-rw-r--r--mcast/client/mingw/.svn/text-base/build.cmd.svn-base2
-rw-r--r--mcast/client/mingw/Makefile55
-rw-r--r--mcast/client/mingw/build.cmd2
5 files changed, 210 insertions, 0 deletions
diff --git a/mcast/client/mingw/.svn/entries b/mcast/client/mingw/.svn/entries
new file mode 100644
index 0000000..23db38d
--- /dev/null
+++ b/mcast/client/mingw/.svn/entries
@@ -0,0 +1,96 @@
+10
+
+dir
+18963
+svn://reelbox.org/testing/src/vdr-plugins/src/mcli-1/mcast/client/mingw
+svn://reelbox.org
+
+
+
+2011-08-18T10:09:14.813360Z
+17158
+dirk
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+12be777f-adf9-0310-842f-e37ecc4c7426
+
+Makefile
+file
+
+
+
+
+2012-09-27T17:22:49.674848Z
+deb39207a48338fe8c29c810cded35f8
+2011-07-12T13:36:23.313379Z
+16905
+rollercoaster
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1469
+
+build.cmd
+file
+
+
+
+
+2012-09-27T17:22:49.674848Z
+f09be9592dd9c22b707bba5dc4591931
+2011-08-18T10:09:14.813360Z
+17158
+dirk
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+44
+
diff --git a/mcast/client/mingw/.svn/text-base/Makefile.svn-base b/mcast/client/mingw/.svn/text-base/Makefile.svn-base
new file mode 100644
index 0000000..356ecf3
--- /dev/null
+++ b/mcast/client/mingw/.svn/text-base/Makefile.svn-base
@@ -0,0 +1,55 @@
+PATH:=/MinGW/bin/:$(PATH)
+CC:=gcc
+
+#Comment this out to disable debugging output
+DEBUG=1
+#VERBOSE=1
+#API_SOCK=1
+
+DEFS=-DCLIENT -DLIBRARY -DWIN32 -D_REENTRANT -D_GNU_SOURCE
+
+ifdef VERBOSE
+DEFS:= $(DEFS) -DDEBUG
+DEBUG=1
+endif
+
+CFLAGS:= $(DEFS) -Wall -Iwin32/include $(CFLAGS)
+LDFLAGS:= -Lwin32/lib $(LDFLAGS)
+LDLIBS:= -lwsock32 -liphlpapi -lpthreadGC2 -lxml2 -lzdll
+
+ifdef DEBUG
+LDFLAGS:= $(LDFLAGS) -g
+CFLAGS:= $(CFLAGS) -g
+else
+#CFLAGS:= $(CFLAGS) -Os
+endif
+
+MCLI = mcli
+MCLI_OBJS = mld_common.o mld_client.o mld_reporter.o mcast.o recv_tv.o recv_ccpp.o tools.o tca_handler.o tra_handler.o satlists.o interfaces.o inet_pton.o inet_ntop.o inet_aton.o
+MCLI_SOBJS := main.o dummy_client.o
+
+all: lib$(MCLI)
+
+lib$(MCLI): $(MCLI_OBJS)
+ $(CC) $(LDFLAGS) -shared -o $@.dll $(MCLI_OBJS) $(LDLIBS) -Wl,--out-implib,$@.a -Wl,--output-def,$@.def
+# $(AR) $(ARFLAGS) $@.a $(MCLI_OBJS)
+ @copy /b $@.dll win32\\lib\\
+ @copy /b $@.a win32\\lib\\
+ @copy /b $@.def win32\\lib\\
+ lib.exe /def:$@.def /machine:x86 /out:win32\\lib\\$@.lib
+ @echo "You can find all libraries in directory win32\lib"
+
+$(MCLI): $(MCLI_OBJS) $(MCLI_SOBJS)
+ $(CC) $(LDFLAGS) -o $@ $(MCLI_OBJS) $(MCLI_SOBJS) $(LDLIBS)
+
+$(MCLI)-shared: lib$(MCLI)
+ $(CC) -c $(CFLAGS) -ULIBRARY -o main.o main.c
+ $(CC) -c $(CFLAGS) -ULIBRARY -o dummy_client.o dummy_client.c
+ $(CC) $(LDFLAGS) -o $@ $(MCLI_SOBJS) $(LDLIBS) -lmcli
+
+clean:
+ @del $(MCLI)*.exe lib$(MCLI).* *.lib *.o *.la *~
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) -o $@ $<
+
diff --git a/mcast/client/mingw/.svn/text-base/build.cmd.svn-base b/mcast/client/mingw/.svn/text-base/build.cmd.svn-base
new file mode 100644
index 0000000..3d3efdb
--- /dev/null
+++ b/mcast/client/mingw/.svn/text-base/build.cmd.svn-base
@@ -0,0 +1,2 @@
+@set PATH=c:\MinGw\bin;%PATH%
+@mingw32-make
diff --git a/mcast/client/mingw/Makefile b/mcast/client/mingw/Makefile
new file mode 100644
index 0000000..356ecf3
--- /dev/null
+++ b/mcast/client/mingw/Makefile
@@ -0,0 +1,55 @@
+PATH:=/MinGW/bin/:$(PATH)
+CC:=gcc
+
+#Comment this out to disable debugging output
+DEBUG=1
+#VERBOSE=1
+#API_SOCK=1
+
+DEFS=-DCLIENT -DLIBRARY -DWIN32 -D_REENTRANT -D_GNU_SOURCE
+
+ifdef VERBOSE
+DEFS:= $(DEFS) -DDEBUG
+DEBUG=1
+endif
+
+CFLAGS:= $(DEFS) -Wall -Iwin32/include $(CFLAGS)
+LDFLAGS:= -Lwin32/lib $(LDFLAGS)
+LDLIBS:= -lwsock32 -liphlpapi -lpthreadGC2 -lxml2 -lzdll
+
+ifdef DEBUG
+LDFLAGS:= $(LDFLAGS) -g
+CFLAGS:= $(CFLAGS) -g
+else
+#CFLAGS:= $(CFLAGS) -Os
+endif
+
+MCLI = mcli
+MCLI_OBJS = mld_common.o mld_client.o mld_reporter.o mcast.o recv_tv.o recv_ccpp.o tools.o tca_handler.o tra_handler.o satlists.o interfaces.o inet_pton.o inet_ntop.o inet_aton.o
+MCLI_SOBJS := main.o dummy_client.o
+
+all: lib$(MCLI)
+
+lib$(MCLI): $(MCLI_OBJS)
+ $(CC) $(LDFLAGS) -shared -o $@.dll $(MCLI_OBJS) $(LDLIBS) -Wl,--out-implib,$@.a -Wl,--output-def,$@.def
+# $(AR) $(ARFLAGS) $@.a $(MCLI_OBJS)
+ @copy /b $@.dll win32\\lib\\
+ @copy /b $@.a win32\\lib\\
+ @copy /b $@.def win32\\lib\\
+ lib.exe /def:$@.def /machine:x86 /out:win32\\lib\\$@.lib
+ @echo "You can find all libraries in directory win32\lib"
+
+$(MCLI): $(MCLI_OBJS) $(MCLI_SOBJS)
+ $(CC) $(LDFLAGS) -o $@ $(MCLI_OBJS) $(MCLI_SOBJS) $(LDLIBS)
+
+$(MCLI)-shared: lib$(MCLI)
+ $(CC) -c $(CFLAGS) -ULIBRARY -o main.o main.c
+ $(CC) -c $(CFLAGS) -ULIBRARY -o dummy_client.o dummy_client.c
+ $(CC) $(LDFLAGS) -o $@ $(MCLI_SOBJS) $(LDLIBS) -lmcli
+
+clean:
+ @del $(MCLI)*.exe lib$(MCLI).* *.lib *.o *.la *~
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) -o $@ $<
+
diff --git a/mcast/client/mingw/build.cmd b/mcast/client/mingw/build.cmd
new file mode 100644
index 0000000..3d3efdb
--- /dev/null
+++ b/mcast/client/mingw/build.cmd
@@ -0,0 +1,2 @@
+@set PATH=c:\MinGw\bin;%PATH%
+@mingw32-make