blob: 6234679b94f4f9ebcba850d167bb0b05d3e3e559 [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 \
13 -I../samplecode
14
scroggob66365f2011-03-18 21:43:03 +000015VPATH = libs:../src/ports:../samplecode:../src/core:../src/utils/unix
scroggob7e9aee2011-03-15 15:15:15 +000016
17#generate debugging info
18CFLAGS = -g
19
scroggob66365f2011-03-18 21:43:03 +000020SRC_LIST := main.cpp SkOSWindow_Unix.cpp SkXMLParser_empty.cpp SkDebug.cpp
scroggob7e9aee2011-03-15 15:15:15 +000021
22#views files
23include ../src/views/views_files.mk
24SRC_LIST += $(addprefix ../src/views/, $(SOURCE))
25
26#xml
27include ../src/xml/xml_files.mk
28SRC_LIST += $(addprefix ../src/xml/, $(SOURCE))
29
30#include the samples
31include ../samplecode/samplecode_files.mk
32SRC_LIST += $(addprefix ../samplecode/, $(SOURCE))
33
scroggob66365f2011-03-18 21:43:03 +000034
35out/output: $(SRC_LIST) out/keysym2ucs.o ../out/libskia.a -lX11 -lpthread -lz -lfreetype -lGL -lpng
scroggob7e9aee2011-03-15 15:15:15 +000036 g++ $(C_INCLUDES) $(CFLAGS) $^ -o $@
37
scroggob66365f2011-03-18 21:43:03 +000038out/keysym2ucs.o: ../src/utils/unix/keysym2ucs.c
39 @mkdir -p $(dir $@)
40 @gcc -c $(C_INCLUDES) $(CFLAGS) $^ -o $@
41
42../out/libskia.a:
43 @$(MAKE) -C ../ SKIA_SAMPLES_FOR_X=true
44
45clean:
46 rm -rf ../out # Copied from ../Makefile
47 rm -rf out