Regarding to TheMovieDB.org, I finished the parsing of 1 result (ignoring data if...
[butaca:butaca-server.git] / examples / Makefile
1 CC = gcc
2
3 LIBS_TMDB = `pkg-config rest-0.6 --libs`
4
5 FLAGS_TMDB = `pkg-config rest-0.6 --cflags` -I../src/
6
7 LIBS_GTRANSLATE = `pkg-config rest-0.6 --libs`
8
9 FLAGS_GTRANSLATE = `pkg-config rest-0.6 --cflags`
10
11 LIBS_GMOVIES = `pkg-config libxml-2.0 rest-0.6 --libs`
12
13 FLAGS_GMOVIES = `pkg-config libxml-2.0 rest-0.6 --cflags`
14
15 all: gtranslate gmovies tmdb
16         
17 gtranslate: gtranslate.o
18         $(CC) -o gtranslate gtranslate.o $(LIBS_GTRANSLATE)
19
20 gtranslate.o: gtranslate.c
21         $(CC) -c gtranslate.c $(FLAGS_GTRANSLATE)
22
23 gmovies: gmovies.o
24         $(CC) -g -o gmovies gmovies.o $(LIBS_GMOVIES)
25
26 gmovies.o: gmovies.c
27         $(CC) -g -c gmovies.c $(FLAGS_GMOVIES)
28         
29 tmdb: test_tmdb.o tmdb_movie.o
30         $(CC) -ggdb -o tmdb test_tmdb.o tmdb_movie.o $(LIBS_TMDB)
31
32 tmdb_movie.o: ../src/tmdb_movie.c
33         $(CC) -ggdb -c ../src/tmdb_movie.c $(FLAGS_TMDB)
34         
35 test_tmdb.o: test_tmdb.c
36         $(CC) -ggdb -c test_tmdb.c $(FLAGS_TMDB)
37
38 clean:
39         rm -rf gtranslate gtranslate.o gmovies gmovies.o tmdb tmdb_movie.o test_tmdb.o *~