aboutsummaryrefslogtreecommitdiff
path: root/lib/addons/library.kodi.adsp/Makefile.in
blob: 77b880b7b74a9c3888cb97f52d2cba9c32fb7dcc (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
ARCH=@ARCH@
INCLUDES=-I. -I../../../xbmc/addons/kodi-addon-dev-kit/include/kodi -I../../../xbmc/addons/kodi-addon-dev-kit/include -I../../../xbmc -I../../../xbmc/cores/VideoPlayer/DVDDemuxers
DEFINES+=
CXXFLAGS=-fPIC
LIBNAME=libKODI_adsp
OBJS=$(LIBNAME).o

ifeq ($(findstring osx,$(ARCH)), osx)
LIB_SHARED=../../../addons/library.kodi.adsp/$(LIBNAME)-$(ARCH).dylib
else
LIB_SHARED=../../../addons/library.kodi.adsp/$(LIBNAME)-$(ARCH).so
endif

all: $(LIB_SHARED)

$(LIB_SHARED): $(OBJS)
ifeq ($(findstring osx,$(ARCH)), osx)
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -dynamiclib -o $@ $(OBJS)
else
	$(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)
endif

CLEAN_FILES = \
	$(LIB_SHARED) \

DISTCLEAN_FILES= \
	Makefile \

include ../../../Makefile.include