Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 70 lines (54 sloc) 1.729 kb
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
DEBUG := YES

CC := gcc
CXX := g++
LD := g++
AR := ar rc
RANLIB := ranlib

DEBUG_CXXFLAGS := -Wall -Wno-format -g -DDEBUG
RELEASE_CXXFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3

LIBS := -lcurl

DEBUG_LDFLAGS := -g
RELEASE_LDFLAGS :=

ifeq (YES, ${DEBUG})
   CXXFLAGS := ${DEBUG_CXXFLAGS}
   LDFLAGS := ${DEBUG_LDFLAGS}
else
   CXXFLAGS := ${RELEASE_CXXFLAGS}
   LDFLAGS := ${RELEASE_LDFLAGS}
endif

INCS := -Ilib/Json-cpp/include

OUTPUT := xbmc-langdload

all: ${OUTPUT}

SRCS := lib/TinyXML/tinyxml.cpp lib/TinyXML/tinyxmlparser.cpp lib/TinyXML/tinystr.cpp lib/TinyXML/tinyxmlerror.cpp \
lib/HTTPUtils.cpp \
lib/FileUtils.cpp \
lib/Log.cpp \
lib/XMLHandler.cpp \
lib/ResourceHandler.cpp \
lib/JSONHandler.cpp \
lib/Json-cpp/src/lib_json/json_reader.cpp \
lib/Json-cpp/src/lib_json/json_value.cpp \
lib/Json-cpp/src/lib_json/json_writer.cpp \
$(OUTPUT)

OBJS := $(addsuffix .o,$(basename ${SRCS}))

${OUTPUT}: ${OBJS}
${LD} -o $@ ${OBJS} ${LIBS} ${LDFLAGS}

%.o : %.cpp
${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@

dist:
bash makedistlinux

clean:
-rm -f core ${OBJS} ${OUTPUT}

tinyxml.o: tinyxml.h tinyxml.cpp tinystr.o tinyparser.o tinyxmlerror.o
tinyxmlparser.o: tinyxmlparser.cpp tinyxmlparser.h
tinyxmlerror.o: tinyxmlerror.cpp tinyxmlerror.h
tinystr.o: tinystr.cpp tinystr.h
FileUtils.o: FileUtils.h FileUtils.cpp Log.cpp Log.h
XMLHandler.o: XMLHandler.h Log.cpp Log.h tinyxml.o
HTTPUtils.o: HTTPUtils.h Log.h Log.cpp
JSONHandler.o: JSONHandler.h JSONHandler.cpp
ResourceHandler.o: ResourceHandler.h Log.cpp Log.h JSONHandler.o JSONHandler.h JSONHandler.cpp

install:
install -m 755 xbmc-langdload /usr/local/bin/
uninstall:
rm -rf /usr/local/bin/xbmc-langdload
Something went wrong with that request. Please try again.