Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (54 sloc) 1.729 kb
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
1 DEBUG := YES
2
3 CC := gcc
4 CXX := g++
5 LD := g++
6 AR := ar rc
7 RANLIB := ranlib
8
9 DEBUG_CXXFLAGS := -Wall -Wno-format -g -DDEBUG
10 RELEASE_CXXFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3
11
87dea308 »
2012-12-21 added: internal json-cpp
12 LIBS := -lcurl
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
13
87dea308 »
2012-12-21 added: internal json-cpp
14 DEBUG_LDFLAGS := -g
15 RELEASE_LDFLAGS :=
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
16
17 ifeq (YES, ${DEBUG})
18 CXXFLAGS := ${DEBUG_CXXFLAGS}
19 LDFLAGS := ${DEBUG_LDFLAGS}
20 else
21 CXXFLAGS := ${RELEASE_CXXFLAGS}
22 LDFLAGS := ${RELEASE_LDFLAGS}
23 endif
24
47568018 »
2013-01-12 fixed: absolute path in Makefile
25 INCS := -Ilib/Json-cpp/include
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
26
27 OUTPUT := xbmc-langdload
28
29 all: ${OUTPUT}
30
31 SRCS := lib/TinyXML/tinyxml.cpp lib/TinyXML/tinyxmlparser.cpp lib/TinyXML/tinystr.cpp lib/TinyXML/tinyxmlerror.cpp \
32 lib/HTTPUtils.cpp \
28070211 »
2012-12-18 addon.xml and changleog.txt already working
33 lib/FileUtils.cpp \
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
34 lib/Log.cpp \
34b0ba5e »
2012-12-20 added: error check for addon which is not found
35 lib/XMLHandler.cpp \
28070211 »
2012-12-18 addon.xml and changleog.txt already working
36 lib/ResourceHandler.cpp \
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
37 lib/JSONHandler.cpp \
87dea308 »
2012-12-21 added: internal json-cpp
38 lib/Json-cpp/src/lib_json/json_reader.cpp \
39 lib/Json-cpp/src/lib_json/json_value.cpp \
40 lib/Json-cpp/src/lib_json/json_writer.cpp \
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
41 $(OUTPUT)
42
43 OBJS := $(addsuffix .o,$(basename ${SRCS}))
44
45 ${OUTPUT}: ${OBJS}
46 ${LD} -o $@ ${OBJS} ${LIBS} ${LDFLAGS}
47
48 %.o : %.cpp
49 ${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@
50
51 dist:
52 bash makedistlinux
53
54 clean:
55 -rm -f core ${OBJS} ${OUTPUT}
56
57 tinyxml.o: tinyxml.h tinyxml.cpp tinystr.o tinyparser.o tinyxmlerror.o
58 tinyxmlparser.o: tinyxmlparser.cpp tinyxmlparser.h
59 tinyxmlerror.o: tinyxmlerror.cpp tinyxmlerror.h
60 tinystr.o: tinystr.cpp tinystr.h
61 FileUtils.o: FileUtils.h FileUtils.cpp Log.cpp Log.h
34b0ba5e »
2012-12-20 added: error check for addon which is not found
62 XMLHandler.o: XMLHandler.h Log.cpp Log.h tinyxml.o
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
63 HTTPUtils.o: HTTPUtils.h Log.h Log.cpp
64 JSONHandler.o: JSONHandler.h JSONHandler.cpp
28070211 »
2012-12-18 addon.xml and changleog.txt already working
65 ResourceHandler.o: ResourceHandler.h Log.cpp Log.h JSONHandler.o JSONHandler.h JSONHandler.cpp
224ac8e8 »
2012-12-16 copy xbmc-txupdate to start rewrite
66
67 install:
68 install -m 755 xbmc-langdload /usr/local/bin/
69 uninstall:
70 rm -rf /usr/local/bin/xbmc-langdload
Something went wrong with that request. Please try again.