blob: 7b282033822637d73834ccf1a7af48fe99660b7f [file] [log] [blame]
scroggob7e9aee2011-03-15 15:15:15 +00001# Build the unix test app
2
3C_INCLUDES := -I../include/core \
4 -I../include/config \
5 -I../include/effects \
6 -I../include/images \
7 -I../include/utils \
8 -I../include/views \
9 -I../include/xml \
10 -I../include/gpu \
11 -I../gpu/include \
12 -I../include/utils/unix \
scroggo2fcdbec2011-05-04 14:16:36 +000013 -I../samplecode \
14 -I../src/core
scroggob7e9aee2011-03-15 15:15:15 +000015
scroggob66365f2011-03-18 21:43:03 +000016VPATH = libs:../src/ports:../samplecode:../src/core:../src/utils/unix
scroggob7e9aee2011-03-15 15:15:15 +000017
18#generate debugging info
19CFLAGS = -g
20
Scroggo9df214e2011-04-15 14:48:08 +000021SRC_LIST := main.cpp SkOSWindow_Unix.cpp SkXMLParser_empty.cpp SkDebug.cpp ../gpu/src/unix/GrGLDefaultInterface_unix.cpp
scroggob7e9aee2011-03-15 15:15:15 +000022
23#views files
24include ../src/views/views_files.mk
25SRC_LIST += $(addprefix ../src/views/, $(SOURCE))
26
27#xml
28include ../src/xml/xml_files.mk
29SRC_LIST += $(addprefix ../src/xml/, $(SOURCE))
30
31#include the samples
32include ../samplecode/samplecode_files.mk
33SRC_LIST += $(addprefix ../samplecode/, $(SOURCE))
34
scroggob66365f2011-03-18 21:43:03 +000035
36out/output: $(SRC_LIST) out/keysym2ucs.o ../out/libskia.a -lX11 -lpthread -lz -lfreetype -lGL -lpng
scroggob7e9aee2011-03-15 15:15:15 +000037 g++ $(C_INCLUDES) $(CFLAGS) $^ -o $@
38
scroggob66365f2011-03-18 21:43:03 +000039out/keysym2ucs.o: ../src/utils/unix/keysym2ucs.c
40 @mkdir -p $(dir $@)
41 @gcc -c $(C_INCLUDES) $(CFLAGS) $^ -o $@
42
43../out/libskia.a:
44 @$(MAKE) -C ../ SKIA_SAMPLES_FOR_X=true
45
46clean:
47 rm -rf ../out # Copied from ../Makefile
48 rm -rf out