blob: 825bbde184fe42e067096e53f2d89d73ce292175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
ARCH=@ARCH@
OBJS += hdhomerun_pkt.o
OBJS += hdhomerun_debug.o
OBJS += hdhomerun_discover.o
OBJS += hdhomerun_channels.o
OBJS += hdhomerun_channelscan.o
OBJS += hdhomerun_control.o
OBJS += hdhomerun_video.o
OBJS += hdhomerun_device.o
CFLAGS += -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -fPIC
SLIBS += -lws2_32
DEFINES += -D__MINGW__
SYSDIR=../../system
SO=hdhomerun-$(ARCH).so
SLIB=$(SYSDIR)/$(SO)
$(SLIB): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
$(CC) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
-bundle -undefined dynamic_lookup -read_only_relocs suppress -o $@ \
@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
else
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -shared -o $@ -Wl,--unresolved-symbols=ignore-all \
`cat @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.def` \
@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o
endif
hdhomerun_dll : $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(SLIBS) -Wl,--out-implib,hdhomerun.lib -shared -o hdhomerun.dll
hdhomerun_config hdhomerun_config.exe : $(OBJS) hdhomerun_config.o
$(CC) $(CFLAGS) $(OBJS) hdhomerun_config.o $(SLIBS) -lpthreadGC -liphlpapi -o $@
hdhomerun_mythconfig : $(LIBSRCS) hdhomerun_mythconfig.o
$(CC) $(CFLAGS) $(OBJS) hdhomerun_config.o $(SLIBS) -lpthreadGC -liphlpapi -lmysqlclient -o $@
include @abs_top_srcdir@/Makefile.include
|