1 # Copyright 2015-2016 Intel Corporation 2 # 3 # Permission is hereby granted, free of charge, to any person obtaining a 4 # copy of this software and associated documentation files (the "Software"), 5 # to deal in the Software without restriction, including without limitation 6 # the rights to use, copy, modify, merge, publish, distribute, sublicense, 7 # and/or sell copies of the Software, and to permit persons to whom the 8 # Software is furnished to do so, subject to the following conditions: 9 # 10 # The above copyright notice and this permission notice (including the next 11 # paragraph) shall be included in all copies or substantial portions of the 12 # Software. 13 # 14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20 # IN THE SOFTWARE. 21 22 ISL_GEN_LIBS = \ 23 isl/libisl-gen4.la \ 24 isl/libisl-gen5.la \ 25 isl/libisl-gen6.la \ 26 isl/libisl-gen7.la \ 27 isl/libisl-gen75.la \ 28 isl/libisl-gen8.la \ 29 isl/libisl-gen9.la \ 30 isl/libisl-gen10.la \ 31 $(NULL) 32 33 noinst_LTLIBRARIES += $(ISL_GEN_LIBS) isl/libisl.la 34 35 isl_libisl_la_LIBADD = $(ISL_GEN_LIBS) 36 isl_libisl_la_SOURCES = $(ISL_FILES) $(ISL_GENERATED_FILES) 37 38 isl_libisl_gen4_la_SOURCES = $(ISL_GEN4_FILES) 39 isl_libisl_gen4_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=40 40 41 isl_libisl_gen5_la_SOURCES = $(ISL_GEN5_FILES) 42 isl_libisl_gen5_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=50 43 44 isl_libisl_gen6_la_SOURCES = $(ISL_GEN6_FILES) 45 isl_libisl_gen6_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=60 46 47 isl_libisl_gen7_la_SOURCES = $(ISL_GEN7_FILES) 48 isl_libisl_gen7_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=70 49 50 isl_libisl_gen75_la_SOURCES = $(ISL_GEN75_FILES) 51 isl_libisl_gen75_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=75 52 53 isl_libisl_gen8_la_SOURCES = $(ISL_GEN8_FILES) 54 isl_libisl_gen8_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=80 55 56 isl_libisl_gen9_la_SOURCES = $(ISL_GEN9_FILES) 57 isl_libisl_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90 58 59 isl_libisl_gen10_la_SOURCES = $(ISL_GEN10_FILES) 60 isl_libisl_gen10_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=100 61 62 BUILT_SOURCES += $(ISL_GENERATED_FILES) 63 64 isl/isl_format_layout.c: isl/gen_format_layout.py \ 65 isl/isl_format_layout.csv 66 $(MKDIR_GEN) 67 $(PYTHON_GEN) $(srcdir)/isl/gen_format_layout.py \ 68 --csv $(srcdir)/isl/isl_format_layout.csv --out $@ 69 70 # ---------------------------------------------------------------------------- 71 # Tests 72 # ---------------------------------------------------------------------------- 73 74 check_PROGRAMS += isl/tests/isl_surf_get_image_offset_test 75 76 TESTS += $(check_PROGRAMS) 77 78 isl_tests_isl_surf_get_image_offset_test_LDADD = \ 79 common/libintel_common.la \ 80 isl/libisl.la \ 81 -lm 82 83 # ---------------------------------------------------------------------------- 84 85 EXTRA_DIST += \ 86 isl/gen_format_layout.py \ 87 isl/isl_format_layout.csv \ 88 isl/README 89