scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 1 | # Build the unix test app |
| 2 | |
| 3 | C_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 \ |
scroggo | 2fcdbec | 2011-05-04 14:16:36 +0000 | [diff] [blame] | 13 | -I../samplecode \ |
| 14 | -I../src/core |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 15 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame] | 16 | VPATH = libs:../src/ports:../samplecode:../src/core:../src/utils/unix |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 17 | |
| 18 | #generate debugging info |
| 19 | CFLAGS = -g |
| 20 | |
Scroggo | 9df214e | 2011-04-15 14:48:08 +0000 | [diff] [blame] | 21 | SRC_LIST := main.cpp SkOSWindow_Unix.cpp SkXMLParser_empty.cpp SkDebug.cpp ../gpu/src/unix/GrGLDefaultInterface_unix.cpp |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 22 | |
| 23 | #views files |
| 24 | include ../src/views/views_files.mk |
| 25 | SRC_LIST += $(addprefix ../src/views/, $(SOURCE)) |
| 26 | |
| 27 | #xml |
| 28 | include ../src/xml/xml_files.mk |
| 29 | SRC_LIST += $(addprefix ../src/xml/, $(SOURCE)) |
| 30 | |
| 31 | #include the samples |
| 32 | include ../samplecode/samplecode_files.mk |
| 33 | SRC_LIST += $(addprefix ../samplecode/, $(SOURCE)) |
| 34 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame] | 35 | |
| 36 | out/output: $(SRC_LIST) out/keysym2ucs.o ../out/libskia.a -lX11 -lpthread -lz -lfreetype -lGL -lpng |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 37 | g++ $(C_INCLUDES) $(CFLAGS) $^ -o $@ |
| 38 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame] | 39 | out/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 | |
| 46 | clean: |
| 47 | rm -rf ../out # Copied from ../Makefile |
| 48 | rm -rf out |