File: 0002_use_system_tgl.patch

package info (click to toggle)
telegram-cli 1.3.1+git20160323.6547c0b21-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,120 kB
  • sloc: ansic: 10,549; sh: 256; perl: 154; makefile: 75; python: 48
file content (33 lines) | stat: -rw-r--r-- 1,517 bytes parent folder | download
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
Index: telegram-cli-1.3.1+git20160323.6547c0b21/Makefile.in
===================================================================
--- telegram-cli-1.3.1+git20160323.6547c0b21.orig/Makefile.in
+++ telegram-cli-1.3.1+git20160323.6547c0b21/Makefile.in
@@ -20,7 +20,7 @@ EXE_LIST=${EXE}/telegram-cli
 
 TG_OBJECTS=${OBJ}/main.o ${OBJ}/loop.o ${OBJ}/interface.o ${OBJ}/lua-tg.o ${OBJ}/json-tg.o ${OBJ}/python-tg.o ${OBJ}/python-types.o
 
-INCLUDE=-I. -I${srcdir} -I${srcdir}/tgl
+INCLUDE=-I. -I${srcdir} -I/usr/include/tgl
 CC=@CC@
 
 .SUFFIXES:
@@ -28,7 +28,7 @@ CC=@CC@
 .SUFFIXES: .c .h .o
 
 all: ${EXE_LIST} ${DIR_LIST}
-create_dirs_and_headers: ${DIR_LIST} ${AUTO}/auto-skip.h ${AUTO}/auto-fetch.h ${AUTO}/auto-store.h ${AUTO}/auto-autocomplete.h ${AUTO}/auto-types.h ${AUTO}/constants.h ${AUTO}/constants.h ${AUTO}/auto-skip.h ${AUTO}/auto-fetch.h ${AUTO}/auto-store.h ${AUTO}/auto-autocomplete.h ${AUTO}/auto-types.h ${AUTO}/auto-fetch-ds.h ${AUTO}/auto-free-ds.h ${AUTO}/auto-store-ds.h ${AUTO}/auto-print-ds.h
+create_dirs_and_headers: ${DIR_LIST}
 create_dirs: ${DIR_LIST}
 dump-tl: ${EXE}/dump-tl-file
 
@@ -47,8 +47,8 @@ DEPENDENCE_LIST=${DEPENDENCE}
 ${TG_OBJECTS}: ${OBJ}/%.o: ${srcdir}/%.c | create_dirs_and_headers
 	${CC} ${INCLUDE} ${COMPILE_FLAGS} -c -MP -MD -MF ${DEP}/$*.d -MQ ${OBJ}/$*.o -o $@ $<
 
-${EXE}/telegram-cli: ${TG_OBJECTS} ${LIB}/libtgl.a
-	${CC} $^ ${LINK_FLAGS} -o $@
+${EXE}/telegram-cli: ${TG_OBJECTS}
+	${CC} $^ ${LINK_FLAGS} -ltgl-0.0.0.20160623 -o $@
 
 clean:
 	rm -rf ${DIR_LIST}