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 \ |
| 13 | -I../samplecode |
| 14 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame^] | 15 | VPATH = libs:../src/ports:../samplecode:../src/core:../src/utils/unix |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 16 | |
| 17 | #generate debugging info |
| 18 | CFLAGS = -g |
| 19 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame^] | 20 | SRC_LIST := main.cpp SkOSWindow_Unix.cpp SkXMLParser_empty.cpp SkDebug.cpp |
scroggo | b7e9aee | 2011-03-15 15:15:15 +0000 | [diff] [blame] | 21 | |
| 22 | #views files |
| 23 | include ../src/views/views_files.mk |
| 24 | SRC_LIST += $(addprefix ../src/views/, $(SOURCE)) |
| 25 | |
| 26 | #xml |
| 27 | include ../src/xml/xml_files.mk |
| 28 | SRC_LIST += $(addprefix ../src/xml/, $(SOURCE)) |
| 29 | |
| 30 | #include the samples |
| 31 | include ../samplecode/samplecode_files.mk |
| 32 | SRC_LIST += $(addprefix ../samplecode/, $(SOURCE)) |
| 33 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame^] | 34 | |
| 35 | 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] | 36 | g++ $(C_INCLUDES) $(CFLAGS) $^ -o $@ |
| 37 | |
scroggo | b66365f | 2011-03-18 21:43:03 +0000 | [diff] [blame^] | 38 | out/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 | |
| 45 | clean: |
| 46 | rm -rf ../out # Copied from ../Makefile |
| 47 | rm -rf out |