2011-03-15 18:15:15 +03:00
|
|
|
# Build the unix test app
|
|
|
|
|
|
|
|
C_INCLUDES := -I../include/core \
|
|
|
|
-I../include/config \
|
|
|
|
-I../include/effects \
|
|
|
|
-I../include/images \
|
|
|
|
-I../include/utils \
|
|
|
|
-I../include/views \
|
|
|
|
-I../include/xml \
|
|
|
|
-I../include/gpu \
|
|
|
|
-I../gpu/include \
|
|
|
|
-I../include/utils/unix \
|
|
|
|
-I../samplecode
|
|
|
|
|
2011-03-19 00:43:03 +03:00
|
|
|
VPATH = libs:../src/ports:../samplecode:../src/core:../src/utils/unix
|
2011-03-15 18:15:15 +03:00
|
|
|
|
|
|
|
#generate debugging info
|
|
|
|
CFLAGS = -g
|
|
|
|
|
2011-04-15 18:48:08 +04:00
|
|
|
SRC_LIST := main.cpp SkOSWindow_Unix.cpp SkXMLParser_empty.cpp SkDebug.cpp ../gpu/src/unix/GrGLDefaultInterface_unix.cpp
|
2011-03-15 18:15:15 +03:00
|
|
|
|
|
|
|
#views files
|
|
|
|
include ../src/views/views_files.mk
|
|
|
|
SRC_LIST += $(addprefix ../src/views/, $(SOURCE))
|
|
|
|
|
|
|
|
#xml
|
|
|
|
include ../src/xml/xml_files.mk
|
|
|
|
SRC_LIST += $(addprefix ../src/xml/, $(SOURCE))
|
|
|
|
|
|
|
|
#include the samples
|
|
|
|
include ../samplecode/samplecode_files.mk
|
|
|
|
SRC_LIST += $(addprefix ../samplecode/, $(SOURCE))
|
|
|
|
|
2011-03-19 00:43:03 +03:00
|
|
|
|
|
|
|
out/output: $(SRC_LIST) out/keysym2ucs.o ../out/libskia.a -lX11 -lpthread -lz -lfreetype -lGL -lpng
|
2011-03-15 18:15:15 +03:00
|
|
|
g++ $(C_INCLUDES) $(CFLAGS) $^ -o $@
|
|
|
|
|
2011-03-19 00:43:03 +03:00
|
|
|
out/keysym2ucs.o: ../src/utils/unix/keysym2ucs.c
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
@gcc -c $(C_INCLUDES) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
../out/libskia.a:
|
|
|
|
@$(MAKE) -C ../ SKIA_SAMPLES_FOR_X=true
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf ../out # Copied from ../Makefile
|
|
|
|
rm -rf out
|