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 $@ `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