Makefile.am 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010-2011 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
  5. # Copyright (C) 2011 Télécom-SudParis
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  18. LIBS = $(top_builddir)/src/libstarpu.la $(MAGMA_LIBS) $(HWLOC_LIBS) @LIBS@
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
  20. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  21. AUTOMAKE_OPTIONS = subdir-objects
  22. SUBDIRS = stencil
  23. if STARPU_USE_SOCL
  24. SUBDIRS += socl
  25. endif
  26. if STARPU_HAVE_FFTW
  27. if STARPU_HAVE_FFTWF
  28. SUBDIRS += starpufft
  29. endif
  30. endif
  31. BUILT_SOURCES =
  32. if STARPU_USE_OPENCL
  33. nobase_STARPU_OPENCL_DATA_DATA =
  34. endif
  35. EXTRA_DIST = \
  36. basic_examples/vector_scal_opencl_kernel.cl \
  37. common/blas_model.c \
  38. spmv/spmv_cuda.cu \
  39. spmv/spmv_opencl.cl \
  40. gordon/null_kernel_gordon.c \
  41. mult/xgemm.c \
  42. lu/xlu.c \
  43. lu/xlu_pivot.c \
  44. lu/xlu_implicit.c \
  45. lu/xlu_implicit_pivot.c \
  46. lu/xlu_kernels.c \
  47. lu/lu_example.c \
  48. cholesky_2ctxs/cholesky_2ctxs.c \
  49. cholesky_no_ctxs/cholesky_no_ctxs.c \
  50. incrementer/incrementer_kernels_opencl_kernel.cl \
  51. basic_examples/variable_kernels_opencl_kernel.cl \
  52. matvecmult/matvecmult_kernel.cl \
  53. basic_examples/block_opencl_kernel.cl \
  54. openmp/vector_scal.c \
  55. filters/fblock_opencl_kernel.cl
  56. CLEANFILES = \
  57. gordon/null_kernel_gordon.spuelf
  58. CLEANFILES += *.gcno *.gcda *.linkinfo
  59. if STARPU_USE_CUDA
  60. NVCCFLAGS += --compiler-options -fno-strict-aliasing -I$(top_srcdir)/include/ -I$(top_builddir)/include/ -I$(top_srcdir)/examples/ $(HWLOC_CFLAGS) -arch sm_13
  61. .cu.o:
  62. $(NVCC) $< -c -o $@ $(NVCCFLAGS)
  63. endif
  64. if STARPU_USE_GORDON
  65. SPU_CC ?= spu-gcc
  66. SPU_LD ?= spu-ld
  67. SPULDFLAGS =
  68. SPULIBS = -lblas #-lc -lgloss -lc
  69. .c.spuo:
  70. $(MKDIR_P) `dirname $@`
  71. $(SPU_CC) -c -fpic $< -o $@
  72. .spuo.spuelf:
  73. $(MKDIR_P) `dirname $@`
  74. $(SPU_LD) $(SPULDFLAGS) $< -o $@ $(SPULIBS)
  75. BUILT_SOURCES += \
  76. gordon/null_kernel_gordon.spuelf
  77. endif
  78. examplebindir = $(libdir)/starpu/examples/
  79. examplebin_PROGRAMS =
  80. noinst_HEADERS = \
  81. cg/cg.h \
  82. heat/lu_kernels_model.h \
  83. heat/dw_sparse_cg.h \
  84. heat/heat.h \
  85. heat/dw_factolu.h \
  86. lu/xlu.h \
  87. lu/xlu_kernels.h \
  88. lu/float.h \
  89. lu/double.h \
  90. lu/complex_float.h \
  91. lu/complex_double.h \
  92. lu/blas_complex.h \
  93. cholesky/cholesky.h \
  94. common/blas_model.h \
  95. common/blas.h \
  96. mult/simple.h \
  97. mult/double.h \
  98. gordon/null.h \
  99. fortran/bindings/StarPU_fortran.h \
  100. ppm_downscaler/ppm_downscaler.h \
  101. ppm_downscaler/yuv_downscaler.h \
  102. spmv/matrix_market/mmio.h \
  103. spmv/matrix_market/mm_to_bcsr.h \
  104. spmv/spmv.h \
  105. spmv/dw_block_spmv.h
  106. #####################################
  107. # What to install and what to check #
  108. #####################################
  109. STARPU_EXAMPLES =
  110. TESTS = $(STARPU_EXAMPLES)
  111. if STARPU_HAVE_WINDOWS
  112. check_PROGRAMS = $(STARPU_EXAMPLES)
  113. else
  114. check_PROGRAMS = $(LOADER) $(STARPU_EXAMPLES)
  115. endif
  116. if !STARPU_HAVE_WINDOWS
  117. ## test loader program
  118. LOADER = loader
  119. LOADER_BIN = $(abs_top_builddir)/examples/$(LOADER)
  120. loader_SOURCES = ../tests/loader.c
  121. TESTS_ENVIRONMENT = $(LOADER_BIN)
  122. endif
  123. examplebin_PROGRAMS += \
  124. basic_examples/hello_world \
  125. basic_examples/vector_scal \
  126. basic_examples/mult \
  127. basic_examples/block \
  128. basic_examples/variable \
  129. basic_examples/mult_impl \
  130. filters/fvector \
  131. filters/fblock \
  132. filters/fmatrix \
  133. tag_example/tag_example \
  134. tag_example/tag_example3 \
  135. tag_example/tag_example2 \
  136. tag_example/tag_restartable \
  137. spmv/spmv \
  138. callback/callback \
  139. incrementer/incrementer \
  140. matvecmult/matvecmult \
  141. profiling/profiling \
  142. scheduler/dummy_sched \
  143. reductions/dot_product \
  144. reductions/minmax_reduction \
  145. mandelbrot/mandelbrot \
  146. ppm_downscaler/ppm_downscaler \
  147. ppm_downscaler/yuv_downscaler
  148. if STARPU_HAVE_F77_H
  149. examplebin_PROGRAMS += \
  150. basic_examples/vector_scal_fortran
  151. endif
  152. if !NO_BLAS_LIB
  153. examplebin_PROGRAMS += \
  154. axpy/axpy \
  155. mult/sgemm \
  156. mult/dgemm \
  157. cholesky/cholesky_tag \
  158. cholesky/cholesky_tile_tag \
  159. cholesky/cholesky_grain_tag \
  160. cholesky/cholesky_implicit \
  161. lu/lu_example_float \
  162. lu/lu_example_double \
  163. lu/lu_implicit_example_float \
  164. lu/lu_implicit_example_double \
  165. heat/heat \
  166. cg/cg
  167. endif
  168. if MKL_BLAS_LIB
  169. examplebin_PROGRAMS += \
  170. lu/lu_example_complex_float \
  171. lu/lu_example_complex_double \
  172. lu/lu_implicit_example_complex_float \
  173. lu/lu_implicit_example_complex_double
  174. endif
  175. if ATLAS_BLAS_LIB
  176. examplebin_PROGRAMS += \
  177. spmv/dw_block_spmv
  178. endif
  179. STARPU_EXAMPLES += \
  180. basic_examples/hello_world \
  181. basic_examples/vector_scal \
  182. basic_examples/mult \
  183. basic_examples/block \
  184. basic_examples/variable \
  185. filters/fvector \
  186. filters/fblock \
  187. filters/fmatrix \
  188. tag_example/tag_example \
  189. tag_example/tag_example3 \
  190. tag_example/tag_example2 \
  191. tag_example/tag_restartable \
  192. spmv/spmv \
  193. callback/callback \
  194. incrementer/incrementer \
  195. matvecmult/matvecmult \
  196. profiling/profiling \
  197. scheduler/dummy_sched \
  198. reductions/dot_product \
  199. reductions/minmax_reduction
  200. if STARPU_HAVE_F77_H
  201. STARPU_EXAMPLES += \
  202. basic_examples/vector_scal_fortran
  203. endif
  204. if !NO_BLAS_LIB
  205. STARPU_EXAMPLES += \
  206. axpy/axpy \
  207. mult/sgemm \
  208. mult/dgemm \
  209. cholesky/cholesky_tag \
  210. cholesky/cholesky_tile_tag \
  211. cholesky/cholesky_grain_tag \
  212. cholesky/cholesky_implicit \
  213. lu/lu_example_float \
  214. lu/lu_example_double \
  215. lu/lu_implicit_example_float \
  216. lu/lu_implicit_example_double \
  217. heat/heat \
  218. cg/cg
  219. endif
  220. if MKL_BLAS_LIB
  221. STARPU_EXAMPLES += \
  222. lu/lu_example_complex_float \
  223. lu/lu_example_complex_double \
  224. lu/lu_implicit_example_complex_float \
  225. lu/lu_implicit_example_complex_double
  226. endif
  227. if ATLAS_BLAS_LIB
  228. STARPU_EXAMPLES += \
  229. spmv/dw_block_spmv
  230. endif
  231. ##################
  232. # Basic examples #
  233. ##################
  234. basic_examples_vector_scal_SOURCES = \
  235. basic_examples/vector_scal.c \
  236. basic_examples/vector_scal_cpu.c
  237. if STARPU_USE_CUDA
  238. basic_examples_vector_scal_SOURCES += \
  239. basic_examples/vector_scal_cuda.cu
  240. endif
  241. if STARPU_USE_OPENCL
  242. basic_examples_vector_scal_SOURCES += \
  243. basic_examples/vector_scal_opencl.c
  244. nobase_STARPU_OPENCL_DATA_DATA += \
  245. basic_examples/vector_scal_opencl_kernel.cl
  246. endif
  247. if STARPU_HAVE_F77_H
  248. basic_examples_vector_scal_fortran_SOURCES = \
  249. basic_examples/vector_scal_fortran.F \
  250. basic_examples/vector_scal_c.c \
  251. basic_examples/vector_scal_cpu.c
  252. if STARPU_USE_CUDA
  253. basic_examples_vector_scal_fortran_SOURCES += \
  254. basic_examples/vector_scal_cuda.cu
  255. basic_examples_vector_scal_fortran_LDADD = \
  256. $(STARPU_CUDA_FORTRAN_LDFLAGS)
  257. endif
  258. endif
  259. #################
  260. # block example #
  261. #################
  262. basic_examples_block_SOURCES = \
  263. basic_examples/block.c \
  264. basic_examples/block_cpu.c
  265. if STARPU_USE_CUDA
  266. basic_examples_block_SOURCES += \
  267. basic_examples/block_cuda.cu
  268. endif
  269. if STARPU_USE_OPENCL
  270. basic_examples_block_SOURCES += \
  271. basic_examples/block_opencl.c
  272. nobase_STARPU_OPENCL_DATA_DATA += \
  273. basic_examples/block_opencl_kernel.cl
  274. endif
  275. ####################
  276. # Variable example #
  277. ####################
  278. basic_examples_variable_SOURCES = \
  279. basic_examples/variable.c \
  280. basic_examples/variable_kernels_cpu.c
  281. if STARPU_USE_CUDA
  282. basic_examples_variable_SOURCES += \
  283. basic_examples/variable_kernels.cu
  284. endif
  285. if STARPU_USE_OPENCL
  286. basic_examples_variable_SOURCES += \
  287. basic_examples/variable_kernels_opencl.c
  288. nobase_STARPU_OPENCL_DATA_DATA += \
  289. basic_examples/variable_kernels_opencl_kernel.cl
  290. endif
  291. ###########
  292. # Filters #
  293. ###########
  294. filters_fblock_SOURCES = \
  295. filters/fblock.c \
  296. filters/fblock_cpu.c
  297. if STARPU_USE_CUDA
  298. filters_fblock_SOURCES += \
  299. filters/fblock_cuda.cu
  300. endif
  301. if STARPU_USE_OPENCL
  302. filters_fblock_SOURCES += \
  303. filters/fblock_opencl.c
  304. nobase_STARPU_OPENCL_DATA_DATA += \
  305. filters/fblock_opencl_kernel.cl
  306. endif
  307. ################
  308. # AXPY example #
  309. ################
  310. if !NO_BLAS_LIB
  311. axpy_axpy_SOURCES = \
  312. axpy/axpy.c \
  313. common/blas.c
  314. axpy_axpy_LDADD = \
  315. $(STARPU_BLAS_LDFLAGS)
  316. endif
  317. ################
  318. # Mult example #
  319. ################
  320. if !NO_BLAS_LIB
  321. mult_sgemm_SOURCES = \
  322. mult/sgemm.c \
  323. common/blas.c
  324. mult_sgemm_LDADD = \
  325. $(STARPU_BLAS_LDFLAGS)
  326. mult_dgemm_SOURCES = \
  327. mult/dgemm.c \
  328. common/blas.c
  329. mult_dgemm_LDADD = \
  330. $(STARPU_BLAS_LDFLAGS)
  331. endif
  332. ####################
  333. # Cholesky example #
  334. ####################
  335. if !NO_BLAS_LIB
  336. cholesky_cholesky_tag_SOURCES = \
  337. cholesky/cholesky_tag.c \
  338. cholesky/cholesky_models.c \
  339. cholesky/cholesky_kernels.c \
  340. common/blas.c
  341. cholesky_cholesky_tag_LDADD = \
  342. $(STARPU_BLAS_LDFLAGS)
  343. cholesky_cholesky_tile_tag_SOURCES = \
  344. cholesky/cholesky_tile_tag.c \
  345. cholesky/cholesky_models.c \
  346. cholesky/cholesky_kernels.c \
  347. common/blas.c
  348. cholesky_cholesky_tile_tag_LDADD = \
  349. $(STARPU_BLAS_LDFLAGS)
  350. cholesky_cholesky_grain_tag_SOURCES = \
  351. cholesky/cholesky_grain_tag.c \
  352. cholesky/cholesky_models.c \
  353. cholesky/cholesky_kernels.c \
  354. common/blas.c
  355. cholesky_cholesky_grain_tag_LDADD = \
  356. $(STARPU_BLAS_LDFLAGS)
  357. cholesky_cholesky_implicit_SOURCES = \
  358. cholesky/cholesky_implicit.c \
  359. cholesky/cholesky_models.c \
  360. cholesky/cholesky_kernels.c \
  361. common/blas.c
  362. cholesky_cholesky_implicit_LDADD = \
  363. $(STARPU_BLAS_LDFLAGS)
  364. endif
  365. ##############
  366. # LU example #
  367. ##############
  368. if !NO_BLAS_LIB
  369. lu_lu_example_float_SOURCES = \
  370. lu/lu_example_float.c \
  371. lu/slu.c \
  372. lu/slu_pivot.c \
  373. lu/slu_kernels.c \
  374. common/blas.c
  375. lu_lu_example_float_LDADD = \
  376. $(STARPU_BLAS_LDFLAGS)
  377. lu_lu_example_double_SOURCES = \
  378. lu/lu_example_double.c \
  379. lu/dlu.c \
  380. lu/dlu_pivot.c \
  381. lu/dlu_kernels.c \
  382. common/blas.c
  383. lu_lu_example_double_LDADD = \
  384. $(STARPU_BLAS_LDFLAGS)
  385. lu_lu_implicit_example_float_SOURCES = \
  386. lu/lu_example_float.c \
  387. lu/slu_implicit.c \
  388. lu/slu_implicit_pivot.c \
  389. lu/slu_kernels.c \
  390. common/blas.c
  391. lu_lu_implicit_example_float_LDADD = \
  392. $(STARPU_BLAS_LDFLAGS)
  393. lu_lu_implicit_example_double_SOURCES = \
  394. lu/lu_example_double.c \
  395. lu/dlu_implicit.c \
  396. lu/dlu_implicit_pivot.c \
  397. lu/dlu_kernels.c \
  398. common/blas.c
  399. lu_lu_implicit_example_double_LDADD = \
  400. $(STARPU_BLAS_LDFLAGS)
  401. if MKL_BLAS_LIB
  402. lu_lu_example_complex_float_SOURCES = \
  403. lu/lu_example_complex_float.c \
  404. lu/clu.c \
  405. lu/clu_pivot.c \
  406. lu/clu_kernels.c \
  407. lu/blas_complex.c \
  408. common/blas.c
  409. lu_lu_example_complex_float_LDADD = \
  410. $(STARPU_BLAS_LDFLAGS)
  411. lu_lu_implicit_example_complex_float_SOURCES = \
  412. lu/lu_example_complex_float.c \
  413. lu/clu_implicit.c \
  414. lu/clu_implicit_pivot.c \
  415. lu/clu_kernels.c \
  416. lu/blas_complex.c \
  417. common/blas.c
  418. lu_lu_implicit_example_complex_float_LDADD = \
  419. $(STARPU_BLAS_LDFLAGS)
  420. lu_lu_example_complex_double_SOURCES = \
  421. lu/lu_example_complex_double.c \
  422. lu/zlu.c \
  423. lu/zlu_pivot.c \
  424. lu/zlu_kernels.c \
  425. lu/blas_complex.c \
  426. common/blas.c
  427. lu_lu_example_complex_double_LDADD = \
  428. $(STARPU_BLAS_LDFLAGS)
  429. lu_lu_implicit_example_complex_double_SOURCES = \
  430. lu/lu_example_complex_double.c \
  431. lu/zlu_implicit.c \
  432. lu/zlu_implicit_pivot.c \
  433. lu/zlu_kernels.c \
  434. lu/blas_complex.c \
  435. common/blas.c
  436. lu_lu_implicit_example_complex_double_LDADD = \
  437. $(STARPU_BLAS_LDFLAGS)
  438. endif
  439. endif
  440. ###########################
  441. # 2 Cholesky in 2 ctxs example #
  442. ###########################
  443. if !NO_BLAS_LIB
  444. examplebin_PROGRAMS += \
  445. cholesky_2ctxs/cholesky_2ctxs
  446. cholesky_2ctxs_cholesky_2ctxs_SOURCES = \
  447. cholesky_2ctxs/cholesky_2ctxs.c \
  448. cholesky_2ctxs/cholesky/cholesky_implicit.c \
  449. cholesky_2ctxs/cholesky/cholesky_models.c \
  450. cholesky_2ctxs/cholesky/cholesky_kernels.c \
  451. common/blas.c
  452. endif
  453. ###########################
  454. # 2 Cholesky in no ctx example #
  455. ###########################
  456. if !NO_BLAS_LIB
  457. examplebin_PROGRAMS += \
  458. cholesky_no_ctxs/cholesky_no_ctxs
  459. cholesky_no_ctxs_cholesky_no_ctxs_SOURCES = \
  460. cholesky_no_ctxs/cholesky_no_ctxs.c \
  461. cholesky_no_ctxs/cholesky/cholesky_implicit.c \
  462. cholesky_no_ctxs/cholesky/cholesky_models.c \
  463. cholesky_no_ctxs/cholesky/cholesky_kernels.c \
  464. common/blas.c
  465. endif
  466. ################
  467. # Heat example #
  468. ################
  469. if !NO_BLAS_LIB
  470. heat_heat_SOURCES = \
  471. heat/heat.c \
  472. heat/dw_factolu.c \
  473. heat/dw_factolu_tag.c \
  474. heat/dw_factolu_grain.c \
  475. heat/dw_sparse_cg.c \
  476. heat/heat_display.c \
  477. heat/lu_kernels_model.c \
  478. heat/dw_sparse_cg_kernels.c \
  479. heat/dw_factolu_kernels.c \
  480. common/blas.c
  481. heat_heat_LDADD = \
  482. $(STARPU_OPENGL_RENDER_LDFLAGS) \
  483. $(STARPU_BLAS_LDFLAGS)
  484. endif
  485. ##############
  486. # CG example #
  487. ##############
  488. if !NO_BLAS_LIB
  489. cg_cg_SOURCES = \
  490. cg/cg.c \
  491. cg/cg_kernels.c \
  492. common/blas.c
  493. if STARPU_USE_CUDA
  494. cg_cg_SOURCES += \
  495. cg/cg_dot_kernel.cu
  496. endif
  497. cg_cg_LDADD = \
  498. $(STARPU_BLAS_LDFLAGS)
  499. endif
  500. ################
  501. # SpMV example #
  502. ################
  503. spmv_spmv_SOURCES = \
  504. spmv/spmv.c \
  505. spmv/spmv_kernels.c
  506. if STARPU_USE_CUDA
  507. spmv_spmv_SOURCES += \
  508. spmv/spmv_cuda.cu
  509. endif
  510. if ATLAS_BLAS_LIB
  511. spmv_dw_block_spmv_SOURCES = \
  512. spmv/dw_block_spmv.c \
  513. spmv/dw_block_spmv_kernels.c \
  514. spmv/matrix_market/mm_to_bcsr.c \
  515. spmv/matrix_market/mmio.c
  516. spmv_dw_block_spmv_LDADD = \
  517. $(STARPU_BLAS_LDFLAGS)
  518. endif
  519. #######################
  520. # Incrementer example #
  521. #######################
  522. incrementer_incrementer_SOURCES = \
  523. incrementer/incrementer.c
  524. if STARPU_USE_CUDA
  525. incrementer_incrementer_SOURCES += \
  526. incrementer/incrementer_kernels.cu
  527. endif
  528. if STARPU_USE_OPENCL
  529. incrementer_incrementer_SOURCES += \
  530. incrementer/incrementer_kernels_opencl.c
  531. nobase_STARPU_OPENCL_DATA_DATA += \
  532. incrementer/incrementer_kernels_opencl_kernel.cl
  533. endif
  534. ######################
  535. # matVecMult example #
  536. ######################
  537. if STARPU_USE_OPENCL
  538. nobase_STARPU_OPENCL_DATA_DATA += \
  539. matvecmult/matvecmult_kernel.cl
  540. endif
  541. #######################
  542. # dot_product example #
  543. #######################
  544. reductions_dot_product_SOURCES = \
  545. reductions/dot_product.c
  546. if STARPU_USE_CUDA
  547. reductions_dot_product_SOURCES += \
  548. reductions/dot_product_kernels.cu
  549. endif
  550. ##################
  551. # Mandelbrot Set #
  552. ##################
  553. mandelbrot_mandelbrot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
  554. if HAVE_X11
  555. mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  556. mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  557. endif
  558. ################
  559. # Top Examples #
  560. ################
  561. examplebin_PROGRAMS += \
  562. top/hello_world_top
  563. top_hello_world_top_SOURCES = \
  564. top/hello_world_top.c