1 # $NetBSD: Makefile,v 1.41 2020/01/19 00:58:14 jmcneill Exp $ 2 3 # Link the gallium mega driver. 4 5 LIBISMODULE= yes 6 LIBISCXX= yes 7 8 .include <bsd.own.mk> 9 10 SHLIB_MAJOR= 0 11 12 LIB= gallium_dri 13 DRIDIR= ${X11USRLIBDIR}/modules/dri 14 DRIDEBUGDIR= ${DEBUGDIR}${X11USRLIBDIR}/modules/dri 15 16 LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/external/apache2/llvm/include && ${PRINTOBJDIR} 17 18 CWARNFLAGS.clang += -Wno-atomic-alignment -Wno-unknown-warning-option -Wno-implicit-int-float-conversion 19 20 CXXFLAGS+= -std=c++14 21 CFLAGS+= -std=gnu11 22 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm \ 23 -I${NETBSDSRCDIR}/external/apache2/llvm/dist/llvm/include \ 24 -I${LLVM_INCLUDE_OBJDIR} -I${NETBSDSRCDIR}/external/apache2/llvm/config 25 26 CFLAGS+= -pthread 27 LDFLAGS+= -pthread 28 LIBDPLIBS+= pthread ${.CURDIR}/../../../../../lib/libpthread 29 30 GALLIUM_SUBDIRS= \ 31 auxiliary \ 32 auxiliary/cso_cache \ 33 auxiliary/draw \ 34 auxiliary/driver_ddebug \ 35 auxiliary/driver_noop \ 36 auxiliary/driver_rbug \ 37 auxiliary/driver_trace \ 38 auxiliary/hud \ 39 auxiliary/indices \ 40 auxiliary/nir \ 41 auxiliary/os \ 42 auxiliary/pipebuffer \ 43 auxiliary/pipe-loader \ 44 auxiliary/postprocess \ 45 auxiliary/rbug \ 46 auxiliary/renderonly \ 47 auxiliary/rtasm \ 48 auxiliary/tgsi \ 49 auxiliary/translate \ 50 auxiliary/util \ 51 auxiliary/vl \ 52 drivers/noop \ 53 drivers/rbug \ 54 drivers/softpipe \ 55 winsys/sw/dri \ 56 winsys/sw/kms-dri \ 57 winsys/sw/null \ 58 winsys/sw/wrapper \ 59 state_trackers/dri 60 61 GALLIUM_SUBDIRS_VDPAU= \ 62 state_trackers/vdpau 63 64 GALLIUM_SUBDIRS_LLVMPIPE= \ 65 auxiliary/gallivm \ 66 drivers/llvmpipe 67 68 GALLIUM_SUBDIRS_ATI= \ 69 drivers/radeon \ 70 drivers/radeonsi \ 71 drivers/r300 \ 72 drivers/r300/compiler \ 73 drivers/r600 \ 74 drivers/r600/sb \ 75 winsys/radeon/drm \ 76 winsys/amdgpu/drm 77 78 GALLIUM_SUBDIRS_I915= \ 79 drivers/i915 \ 80 winsys/i915/drm 81 82 GALLIUM_SUBDIRS_NOUVEAU= \ 83 drivers/nouveau \ 84 drivers/nouveau/nv30 \ 85 drivers/nouveau/nv50 \ 86 drivers/nouveau/codegen \ 87 drivers/nouveau/nvc0 \ 88 winsys/nouveau/drm 89 90 BUILD_RADEON=0 91 BUILD_NOUVEAU=0 92 BUILD_VDPAU=0 93 BUILD_LLVMPIPE=0 94 BUILD_I915=0 95 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 96 BUILD_I915=1 97 .endif 98 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm" 99 BUILD_NOUVEAU=1 100 . if ${MKLLVMRT} != "no" 101 BUILD_RADEON=1 102 . endif 103 BUILD_VDPAU=1 104 .endif 105 106 .if ${MACHINE_ARCH} == "i386" || \ 107 ${MACHINE_ARCH} == "x86_64" || \ 108 ${MACHINE_ARCH} == "powerpc" || \ 109 ${MACHINE_ARCH} == "powerpc64" || \ 110 !empty(MACHINE_ARCH:Maarch64*) || \ 111 !empty(MACHINE_ARCH:Mmips*) || \ 112 !empty(MACHINE_ARCH:Mearm*) || \ 113 !empty(MACHINE_ARCH:Marm*) 114 . if ${MKLLVMRT} != "no" 115 BUILD_LLVMPIPE=1 116 . endif 117 .endif 118 119 DRIVERS= kms_swrast swrast 120 .if ${BUILD_RADEON} == 1 121 DRIVERS+= r600 r300 122 GALLIUM_SUBDIRS+= ${GALLIUM_SUBDIRS_ATI} 123 .endif 124 .if ${BUILD_NOUVEAU} == 1 125 DRIVERS+= nouveau 126 GALLIUM_SUBDIRS+= ${GALLIUM_SUBDIRS_NOUVEAU} 127 .endif 128 .if ${BUILD_VDPAU} == 1 129 GALLIUM_SUBDIRS+= ${GALLIUM_SUBDIRS_VDPAU} 130 .endif 131 .if ${BUILD_I915} == 1 132 GALLIUM_SUBDIRS+= ${GALLIUM_SUBDIRS_I915} 133 .endif 134 .if ${BUILD_LLVMPIPE} == 1 135 GALLIUM_SUBDIRS+= ${GALLIUM_SUBDIRS_LLVMPIPE} 136 .endif 137 138 GALLIUM_SOURCES.auxiliary/cso_cache= \ 139 cso_cache.c \ 140 cso_context.c \ 141 cso_hash.c 142 143 GALLIUM_SOURCES.auxiliary/draw= \ 144 draw_context.c \ 145 draw_fs.c \ 146 draw_gs.c \ 147 draw_pipe_aaline.c \ 148 draw_pipe_aapoint.c \ 149 draw_pipe.c \ 150 draw_pipe_clip.c \ 151 draw_pipe_cull.c \ 152 draw_pipe_flatshade.c \ 153 draw_pipe_offset.c \ 154 draw_pipe_pstipple.c \ 155 draw_pipe_stipple.c \ 156 draw_pipe_twoside.c \ 157 draw_pipe_unfilled.c \ 158 draw_pipe_util.c \ 159 draw_pipe_validate.c \ 160 draw_pipe_vbuf.c \ 161 draw_pipe_wide_line.c \ 162 draw_pipe_wide_point.c \ 163 draw_prim_assembler.c \ 164 draw_pt.c \ 165 draw_pt_emit.c \ 166 draw_pt_fetch.c \ 167 draw_pt_fetch_emit.c \ 168 draw_pt_fetch_shade_emit.c \ 169 draw_pt_fetch_shade_pipeline.c \ 170 draw_pt_post_vs.c \ 171 draw_pt_so_emit.c \ 172 draw_pt_util.c \ 173 draw_pt_vsplit.c \ 174 draw_vertex.c \ 175 draw_vs.c \ 176 draw_vs_exec.c \ 177 draw_vs_variant.c 178 179 .if ${MKLLVMRT} != "no" 180 GALLIUM_SOURCES.auxiliary/draw+= \ 181 draw_llvm.c \ 182 draw_llvm_sample.c \ 183 draw_pt_fetch_shade_pipeline_llvm.c \ 184 draw_vs_llvm.c 185 .endif 186 187 GALLIUM_SOURCES.auxiliary/hud= \ 188 font.c \ 189 hud_context.c \ 190 hud_cpu.c \ 191 hud_nic.c \ 192 hud_cpufreq.c \ 193 hud_diskstat.c \ 194 hud_sensors_temp.c \ 195 hud_fps.c \ 196 hud_driver_query.c 197 GALLIUM_SOURCES.auxiliary/indices= \ 198 u_primconvert.c 199 GALLIUM_SOURCES.auxiliary/os= \ 200 os_process.c 201 GALLIUM_SOURCES.auxiliary/pipe-loader= \ 202 pipe_loader.c \ 203 pipe_loader_drm.c \ 204 pipe_loader_sw.c 205 206 .for _f in ${GALLIUM_SOURCES.auxiliary/pipe-loader} 207 CPPFLAGS.${_f} += -DHAVE_PIPE_LOADER_KMS=1 \ 208 -DHAVE_PIPE_LOADER_DRI=1 \ 209 -DGALLIUM_STATIC_TARGETS=1 \ 210 -I${X11SRCDIR.Mesa}/src/gallium/winsys \ 211 -I${X11SRCDIR.Mesa}/src/loader \ 212 -I${X11SRCDIR.Mesa}/../src/util 213 .endfor 214 215 GALLIUM_SOURCES.auxiliary/pipebuffer= \ 216 pb_buffer_fenced.c \ 217 pb_bufmgr_cache.c \ 218 pb_bufmgr_debug.c \ 219 pb_bufmgr_mm.c \ 220 pb_bufmgr_slab.c \ 221 pb_cache.c \ 222 pb_slab.c \ 223 pb_validate.c 224 GALLIUM_SOURCES.auxiliary/postprocess= \ 225 pp_celshade.c \ 226 pp_colors.c \ 227 pp_init.c \ 228 pp_mlaa.c \ 229 pp_run.c \ 230 pp_program.c 231 GALLIUM_SOURCES.auxiliary/rbug= \ 232 rbug_connection.c \ 233 RBUGrbug_context.c \ 234 RBUGrbug_core.c \ 235 rbug_demarshal.c \ 236 rbug_texture.c \ 237 rbug_shader.c 238 GALLIUM_SOURCES.auxiliary/rtasm= \ 239 rtasm_cpu.c \ 240 rtasm_execmem.c \ 241 rtasm_x86sse.c 242 GALLIUM_SOURCES.auxiliary/tgsi= \ 243 tgsi_aa_point.c \ 244 tgsi_build.c \ 245 tgsi_dump.c \ 246 tgsi_exec.c \ 247 tgsi_emulate.c \ 248 tgsi_from_mesa.c \ 249 tgsi_info.c \ 250 tgsi_iterate.c \ 251 tgsi_lowering.c \ 252 tgsi_parse.c \ 253 tgsi_point_sprite.c \ 254 tgsi_sanity.c \ 255 tgsi_scan.c \ 256 tgsi_strings.c \ 257 tgsi_text.c \ 258 tgsi_transform.c \ 259 tgsi_two_side.c \ 260 tgsi_ureg.c \ 261 tgsi_util.c 262 GALLIUM_SOURCES.auxiliary/translate= \ 263 translate.c \ 264 translate_cache.c \ 265 translate_generic.c \ 266 translate_sse.c 267 GALLIUM_SOURCES.auxiliary/util= \ 268 os_misc.c \ 269 u_async_debug.c \ 270 u_bitmask.c \ 271 u_blit.c \ 272 u_blitter.c \ 273 u_cache.c \ 274 u_debug.c \ 275 u_debug_describe.c \ 276 u_debug_flush.c \ 277 u_debug_gallium.c \ 278 u_debug_image.c \ 279 u_debug_memory.c \ 280 u_debug_refcnt.c \ 281 u_debug_stack.c \ 282 u_debug_symbol.c \ 283 u_dl.c \ 284 u_draw.c \ 285 u_draw_quad.c \ 286 u_dump_defines.c \ 287 u_dump_state.c \ 288 u_format.c \ 289 u_format_bptc.c \ 290 u_format_etc.c \ 291 u_format_latc.c \ 292 u_format_other.c \ 293 u_format_rgtc.c \ 294 u_format_s3tc.c \ 295 u_format_tests.c \ 296 u_format_yuv.c \ 297 u_format_zs.c \ 298 u_framebuffer.c \ 299 u_gen_mipmap.c \ 300 u_handle_table.c \ 301 u_hash_table.c \ 302 u_helpers.c \ 303 u_idalloc.c \ 304 u_index_modify.c \ 305 u_linear.c \ 306 u_log.c \ 307 u_mm.c \ 308 u_network.c \ 309 u_prim.c \ 310 u_prim_restart.c \ 311 u_pstipple.c \ 312 u_resource.c \ 313 u_ringbuffer.c \ 314 u_sampler.c \ 315 u_screen.c \ 316 u_simple_shaders.c \ 317 u_suballoc.c \ 318 u_surface.c \ 319 u_surfaces.c \ 320 u_tests.c \ 321 u_texture.c \ 322 u_tile.c \ 323 u_transfer.c \ 324 u_transfer_helper.c \ 325 u_threaded_context.c \ 326 u_upload_mgr.c \ 327 u_vbuf.c 328 GALLIUM_SOURCES.auxiliary/nir = \ 329 tgsi_to_nir.c 330 GALLIUM_SOURCES.auxiliary/vl= \ 331 vl_bicubic_filter.c \ 332 vl_compositor.c \ 333 vl_compositor_cs.c \ 334 vl_compositor_gfx.c \ 335 vl_csc.c \ 336 vl_decoder.c \ 337 vl_deint_filter.c \ 338 vl_idct.c \ 339 vl_matrix_filter.c \ 340 vl_mc.c \ 341 vl_median_filter.c \ 342 vl_mpeg12_bitstream.c \ 343 vl_mpeg12_decoder.c \ 344 vl_vertex_buffers.c \ 345 vl_video_buffer.c \ 346 vl_winsys_dri.c \ 347 vl_zscan.c 348 349 # Generated 350 .PATH: ${X11SRCDIR.Mesa}/../src/gallium/auxiliary 351 GALLIUM_SOURCES.auxiliary= \ 352 u_indices_gen.c \ 353 u_unfilled_gen.c \ 354 u_format_table.c 355 .for _f in ${GALLIUM_SOURCES.auxiliary/vl} 356 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/loader 357 .endfor 358 .for _f in ${GALLIUM_SOURCES.auxiliary} 359 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/auxiliary/util 360 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/util 361 .endfor 362 363 GALLIUM_SOURCES.auxiliary/renderonly= \ 364 renderonly.c 365 366 GALLIUM_SOURCES.auxiliary/gallivm= \ 367 lp_bld_arit.c \ 368 lp_bld_arit_overflow.c \ 369 lp_bld_assert.c \ 370 lp_bld_bitarit.c \ 371 lp_bld_const.c \ 372 lp_bld_conv.c \ 373 lp_bld_flow.c \ 374 lp_bld_format_aos_array.c \ 375 lp_bld_format_aos.c \ 376 lp_bld_format_float.c \ 377 lp_bld_format.c \ 378 lp_bld_format_soa.c \ 379 lp_bld_format_s3tc.c \ 380 lp_bld_format_srgb.c \ 381 lp_bld_format_yuv.c \ 382 lp_bld_gather.c \ 383 lp_bld_init.c \ 384 lp_bld_intr.c \ 385 lp_bld_logic.c \ 386 lp_bld_misc.cpp \ 387 lp_bld_pack.c \ 388 lp_bld_printf.c \ 389 lp_bld_quad.c \ 390 lp_bld_sample_aos.c \ 391 lp_bld_sample.c \ 392 lp_bld_sample_soa.c \ 393 lp_bld_struct.c \ 394 lp_bld_swizzle.c \ 395 lp_bld_tgsi_action.c \ 396 lp_bld_tgsi_aos.c \ 397 lp_bld_tgsi.c \ 398 lp_bld_tgsi_info.c \ 399 lp_bld_tgsi_soa.c \ 400 lp_bld_type.c 401 #lp_bld_debug.cpp 402 403 .for _f in ${GALLIUM_SOURCES.auxiliary/gallivm} 404 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/auxiliary/util 405 .endfor 406 407 408 GALLIUM_SOURCES.auxiliary/driver_ddebug = \ 409 dd_context.c \ 410 dd_draw.c \ 411 dd_screen.c 412 413 GALLIUM_SOURCES.auxiliary/driver_noop = \ 414 noop_pipe.c \ 415 noop_state.c 416 417 GALLIUM_SOURCES.auxiliary/driver_trace = \ 418 tr_context.c \ 419 tr_dump.c \ 420 tr_dump_state.c \ 421 tr_screen.c \ 422 tr_texture.c 423 424 GALLIUM_SOURCES.auxiliary/driver_rbug = \ 425 DRIVERrbug_core.c \ 426 DRIVERrbug_context.c \ 427 rbug_objects.c \ 428 rbug_screen.c 429 # Conflicts with auxiliary/rbug/ files 430 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/auxiliary/rbug/rbug_core.c RBUGrbug_core.c 431 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/auxiliary/rbug/rbug_context.c RBUGrbug_context.c 432 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/auxiliary/driver_rbug/rbug_core.c DRIVERrbug_core.c 433 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/auxiliary/driver_rbug/rbug_context.c DRIVERrbug_context.c 434 CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.Mesa}/src/gallium/auxiliary 435 CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.Mesa}/src/gallium/auxiliary/driver_rbug 436 CPPFLAGS.DRIVERrbug_core.c+= -I${X11SRCDIR.Mesa}/src/gallium/drivers 437 CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.Mesa}/src/gallium/auxiliary 438 CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.Mesa}/src/gallium/auxiliary/driver_rbug 439 CPPFLAGS.DRIVERrbug_context.c+= -I${X11SRCDIR.Mesa}/src/gallium/drivers 440 441 GALLIUM_SOURCES.drivers/i915= \ 442 i915_blit.c \ 443 i915_clear.c \ 444 i915_context.c \ 445 i915_debug.c \ 446 i915_debug_fp.c \ 447 i915_flush.c \ 448 i915_fpc_emit.c \ 449 i915_fpc_optimize.c \ 450 i915_fpc_translate.c \ 451 i915_prim_emit.c \ 452 i915_prim_vbuf.c \ 453 i915_query.c \ 454 i915_resource_buffer.c \ 455 i915_resource.c \ 456 i915_resource_texture.c \ 457 i915_screen.c \ 458 i915_state.c \ 459 i915_state_derived.c \ 460 i915_state_dynamic.c \ 461 i915_state_emit.c \ 462 i915_state_fpc.c \ 463 i915_state_immediate.c \ 464 i915_state_sampler.c \ 465 i915_state_static.c \ 466 i915_surface.c 467 468 GALLIUM_SOURCES.winsys/i915/drm= \ 469 i915_drm_batchbuffer.c \ 470 i915_drm_buffer.c \ 471 i915_drm_fence.c \ 472 i915_drm_winsys.c 473 474 # Conflicts with r600/radeon_video.c and radeon/radeon_video.c 475 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/r600/radeon_video.c r600_radeon_video.c 476 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/radeon/radeon_video.c radeon_radeon_video.c 477 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/r600/radeon_vce.c r600_radeon_vce.c 478 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/radeon/radeon_vce.c radeon_radeon_vce.c 479 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/r600/radeon_uvd.c r600_radeon_uvd.c 480 BUILDSYMLINKS+= ${X11SRCDIR.Mesa}/src/gallium/drivers/radeon/radeon_uvd.c radeon_radeon_uvd.c 481 482 GALLIUM_SOURCES.drivers/radeon = \ 483 cayman_msaa.c \ 484 r600_buffer_common.c \ 485 r600_pipe_common.c \ 486 r600_query.c \ 487 r600_streamout.c \ 488 r600_texture.c \ 489 radeon_radeon_uvd.c \ 490 radeon_uvd_enc.c \ 491 radeon_uvd_enc_1_1.c \ 492 radeon_vce_40_2_2.c \ 493 radeon_vce_50.c \ 494 radeon_vce_52.c \ 495 radeon_vcn_dec.c \ 496 radeon_vcn_dec_jpeg.c \ 497 radeon_vcn_enc.c \ 498 radeon_vcn_enc_1_2.c \ 499 radeon_radeon_vce.c \ 500 radeon_radeon_video.c \ 501 502 GALLIUM_SOURCES.drivers/r600 = \ 503 eg_debug.c \ 504 r600_gpu_load.c \ 505 r600_perfcounter.c \ 506 r600_radeon_vce.c \ 507 r600_radeon_video.c \ 508 compute_memory_pool.c \ 509 r600_viewport.c \ 510 eg_asm.c \ 511 evergreen_compute.c \ 512 evergreen_hw_context.c \ 513 evergreen_state.c \ 514 r600_asm.c \ 515 r600_blit.c \ 516 r600_hw_context.c \ 517 r600_isa.c \ 518 r600_pipe.c \ 519 r600_shader.c \ 520 r600_state.c \ 521 r600_state_common.c \ 522 r600_uvd.c \ 523 r600_radeon_uvd.c \ 524 r600_test_dma.c \ 525 r700_asm.c 526 GALLIUM_SOURCES.drivers/r600/sb = \ 527 sb_bc_builder.cpp \ 528 sb_bc_decoder.cpp \ 529 sb_bc_dump.cpp \ 530 sb_bc_finalize.cpp \ 531 sb_bc_parser.cpp \ 532 sb_context.cpp \ 533 sb_core.cpp \ 534 sb_dce_cleanup.cpp \ 535 sb_def_use.cpp \ 536 sb_dump.cpp \ 537 sb_expr.cpp \ 538 sb_gcm.cpp \ 539 sb_gvn.cpp \ 540 sb_if_conversion.cpp \ 541 sb_ir.cpp \ 542 sb_liveness.cpp \ 543 sb_pass.cpp \ 544 sb_peephole.cpp \ 545 sb_psi_ops.cpp \ 546 sb_ra_checker.cpp \ 547 sb_ra_coalesce.cpp \ 548 sb_ra_init.cpp \ 549 sb_sched.cpp \ 550 sb_shader.cpp \ 551 sb_ssa_builder.cpp \ 552 sb_valtable.cpp 553 554 GALLIUM_SOURCES.drivers/r300 = \ 555 r300_blit.c \ 556 r300_chipset.c \ 557 r300_context.c \ 558 r300_debug.c \ 559 r300_emit.c \ 560 r300_flush.c \ 561 r300_fs.c \ 562 r300_hyperz.c \ 563 r300_query.c \ 564 r300_render.c \ 565 r300_render_stencilref.c \ 566 r300_render_translate.c \ 567 r300_resource.c \ 568 r300_screen_buffer.c \ 569 r300_screen.c \ 570 r300_state.c \ 571 r300_state_derived.c \ 572 r300_texture.c \ 573 r300_texture_desc.c \ 574 r300_tgsi_to_rc.c \ 575 r300_transfer.c \ 576 r300_vs.c \ 577 r300_vs_draw.c 578 579 GALLIUM_SOURCES.drivers/r300/compiler = \ 580 memory_pool.c \ 581 r300_fragprog.c \ 582 r300_fragprog_emit.c \ 583 r300_fragprog_swizzle.c \ 584 r3xx_fragprog.c \ 585 r3xx_vertprog.c \ 586 r3xx_vertprog_dump.c \ 587 r500_fragprog.c \ 588 r500_fragprog_emit.c \ 589 radeon_code.c \ 590 radeon_compiler.c \ 591 radeon_compiler_util.c \ 592 radeon_dataflow.c \ 593 radeon_dataflow_deadcode.c \ 594 radeon_dataflow_swizzles.c \ 595 radeon_emulate_branches.c \ 596 radeon_emulate_loops.c \ 597 radeon_inline_literals.c \ 598 radeon_list.c \ 599 radeon_opcodes.c \ 600 radeon_optimize.c \ 601 radeon_pair_dead_sources.c \ 602 radeon_pair_regalloc.c \ 603 radeon_pair_schedule.c \ 604 radeon_pair_translate.c \ 605 radeon_program_alu.c \ 606 radeon_program.c \ 607 radeon_program_pair.c \ 608 radeon_program_print.c \ 609 radeon_program_tex.c \ 610 radeon_remove_constants.c \ 611 radeon_rename_regs.c \ 612 radeon_variable.c \ 613 radeon_vert_fc.c 614 615 GALLIUM_SOURCES.drivers/radeonsi = \ 616 cik_sdma.c \ 617 si_blit.c \ 618 si_buffer.c \ 619 si_clear.c \ 620 si_compute.c \ 621 si_compute_blit.c \ 622 si_cp_dma.c \ 623 si_debug.c \ 624 si_descriptors.c \ 625 si_dma.c \ 626 si_dma_cs.c \ 627 si_fence.c \ 628 si_get.c \ 629 si_gfx_cs.c \ 630 si_gpu_load.c \ 631 si_pipe.c \ 632 si_pm4.c \ 633 si_perfcounter.c \ 634 si_query.c \ 635 si_shader.c \ 636 si_shader_nir.c \ 637 si_shader_tgsi_alu.c \ 638 si_shader_tgsi_mem.c \ 639 si_shader_tgsi_setup.c \ 640 si_shaderlib_tgsi.c \ 641 si_state.c \ 642 si_state_binning.c \ 643 si_state_draw.c \ 644 si_state_msaa.c \ 645 si_state_shaders.c \ 646 si_state_streamout.c \ 647 si_state_viewport.c \ 648 si_test_dma.c \ 649 si_test_dma_perf.c \ 650 si_texture.c \ 651 si_uvd.c 652 653 .for _f in ${GALLIUM_SOURCES.drivers/radeon} 654 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/drivers/radeon 655 .endfor 656 657 .for _f in ${GALLIUM_SOURCES.drivers/r300} ${GALLIUM_SOURCES.drivers/r300/compiler} 658 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/drivers/r300 \ 659 -I${X11SRCDIR.Mesa}/src/gallium/drivers/r300/compiler 660 .endfor 661 662 .for _f in ${GALLIUM_SOURCES.drivers/r600} ${GALLIUM_SOURCES.drivers/r600/sb} ${GALLIUM_SOURCES.drivers/radeonsi} 663 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/drivers/r600 664 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/../src/gallium/drivers/r600 665 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/amd/common 666 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/../src/amd/common 667 .endfor 668 669 .for _f in ${GALLIUM_SOURCES.drivers/radeon} 670 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/drivers/radeonsi 671 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/amd/common 672 .endfor 673 674 GALLIUM_SOURCES.drivers/nouveau = \ 675 nouveau_buffer.c \ 676 nouveau_fence.c \ 677 nouveau_heap.c \ 678 nouveau_mm.c \ 679 nouveau_screen.c \ 680 nouveau_video.c \ 681 nouveau_vp3_video_bsp.c \ 682 nouveau_vp3_video.c \ 683 nouveau_vp3_video_vp.c 684 685 GALLIUM_SOURCES.drivers/nouveau/nv30 = \ 686 nv30_clear.c \ 687 nv30_context.c \ 688 nv30_draw.c \ 689 nv30_format.c \ 690 nv30_fragprog.c \ 691 nv30_fragtex.c \ 692 nv30_miptree.c \ 693 nv30_push.c \ 694 nv30_query.c \ 695 nv30_resource.c \ 696 nv30_screen.c \ 697 nv30_state.c \ 698 nv30_state_validate.c \ 699 nv30_texture.c \ 700 nv30_transfer.c \ 701 nv30_vbo.c \ 702 nv30_vertprog.c \ 703 nv40_verttex.c \ 704 nvfx_fragprog.c \ 705 nvfx_vertprog.c 706 707 GALLIUM_SOURCES.drivers/nouveau/nv50 = \ 708 nv50_compute.c \ 709 nv50_context.c \ 710 nv50_formats.c \ 711 nv50_miptree.c \ 712 nv50_program.c \ 713 nv50_push.c \ 714 nv50_query.c \ 715 nv50_query_hw.c \ 716 nv50_query_hw_metric.c \ 717 nv50_query_hw_sm.c \ 718 nv50_resource.c \ 719 nv50_screen.c \ 720 nv50_shader_state.c \ 721 nv50_state.c \ 722 nv50_state_validate.c \ 723 nv50_surface.c \ 724 nv50_tex.c \ 725 nv50_transfer.c \ 726 nv50_vbo.c \ 727 nv84_video_bsp.c \ 728 nv84_video.c \ 729 nv84_video_vp.c \ 730 nv98_video_bsp.c \ 731 nv98_video.c \ 732 nv98_video_ppp.c \ 733 nv98_video_vp.c 734 735 GALLIUM_SOURCES.drivers/nouveau/codegen = \ 736 nv50_ir.cpp \ 737 nv50_ir_bb.cpp \ 738 nv50_ir_build_util.cpp \ 739 nv50_ir_emit_gk110.cpp \ 740 nv50_ir_emit_gm107.cpp \ 741 nv50_ir_emit_nv50.cpp \ 742 nv50_ir_emit_nvc0.cpp \ 743 nv50_ir_from_common.cpp \ 744 nv50_ir_from_nir.cpp \ 745 nv50_ir_from_tgsi.cpp \ 746 nv50_ir_graph.cpp \ 747 nv50_ir_lowering_gm107.cpp \ 748 nv50_ir_lowering_helper.cpp \ 749 nv50_ir_lowering_nv50.cpp \ 750 nv50_ir_lowering_nvc0.cpp \ 751 nv50_ir_peephole.cpp \ 752 nv50_ir_print.cpp \ 753 nv50_ir_ra.cpp \ 754 nv50_ir_ssa.cpp \ 755 nv50_ir_target.cpp \ 756 nv50_ir_target_nv50.cpp \ 757 nv50_ir_util.cpp \ 758 nv50_ir_target_gm107.cpp \ 759 nv50_ir_target_nvc0.cpp 760 761 GALLIUM_SOURCES.drivers/nouveau/nvc0 = \ 762 nvc0_compute.c \ 763 nvc0_context.c \ 764 nvc0_formats.c \ 765 nvc0_miptree.c \ 766 nvc0_resource.c \ 767 nvc0_screen.c \ 768 nvc0_state.c \ 769 nvc0_state_validate.c \ 770 nvc0_surface.c \ 771 nvc0_tex.c \ 772 nvc0_transfer.c \ 773 nvc0_vbo.c \ 774 nvc0_vbo_translate.c \ 775 nvc0_program.c \ 776 nvc0_shader_state.c \ 777 nvc0_query.c \ 778 nvc0_query_hw.c \ 779 nvc0_query_hw_metric.c \ 780 nvc0_query_hw_sm.c \ 781 nvc0_query_sw.c \ 782 nve4_compute.c \ 783 nvc0_video.c \ 784 nvc0_video_bsp.c \ 785 nvc0_video_vp.c \ 786 nvc0_video_ppp.c 787 788 789 GALLIUM_SOURCES.winsys/nouveau/drm = \ 790 nouveau_drm_winsys.c 791 792 .for _f in ${GALLIUM_SOURCES.drivers/nouveau} \ 793 ${GALLIUM_SOURCES.drivers/nouveau/nv30} \ 794 ${GALLIUM_SOURCES.drivers/nouveau/nv50} \ 795 ${GALLIUM_SOURCES.drivers/nouveau/codegen} \ 796 ${GALLIUM_SOURCES.drivers/nouveau/nvc0} \ 797 ${GALLIUM_SOURCES.winsys/nouveau/drm} 798 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/drivers/nouveau \ 799 -I${DESTDIR}${X11INCDIR}/libdrm/nouveau 800 .endfor 801 802 GALLIUM_SOURCES.winsys/radeon/drm = \ 803 radeon_drm_bo.c \ 804 radeon_drm_cs.c \ 805 radeon_drm_surface.c \ 806 radeon_drm_winsys.c 807 808 GALLIUM_SOURCES.winsys/amdgpu/drm = \ 809 amdgpu_bo.c \ 810 amdgpu_cs.c \ 811 amdgpu_surface.c \ 812 amdgpu_winsys.c 813 814 .for _f in ${GALLIUM_SOURCES.winsys/amdgpu/drm} 815 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/amd 816 .endfor 817 818 GALLIUM_SOURCES.state_trackers/vdpau = \ 819 bitmap.c \ 820 decode.c \ 821 device.c \ 822 ftab.c \ 823 htab.c \ 824 mixer.c \ 825 output.c \ 826 preemption.c \ 827 presentation.c \ 828 query.c \ 829 surface.c 830 831 GALLIUM_SOURCES.drivers/llvmpipe = \ 832 lp_bld_alpha.c \ 833 lp_bld_blend_aos.c \ 834 lp_bld_blend.c \ 835 lp_bld_blend_logicop.c \ 836 lp_bld_depth.c \ 837 lp_bld_interp.c \ 838 lp_clear.c \ 839 lp_context.c \ 840 lp_draw_arrays.c \ 841 lp_fence.c \ 842 lp_flush.c \ 843 lp_jit.c \ 844 lp_memory.c \ 845 lp_perf.c \ 846 lp_query.c \ 847 lp_rast.c \ 848 lp_rast_debug.c \ 849 lp_rast_tri.c \ 850 lp_scene.c \ 851 lp_scene_queue.c \ 852 lp_screen.c \ 853 lp_setup.c \ 854 lp_setup_line.c \ 855 lp_setup_point.c \ 856 lp_setup_tri.c \ 857 lp_setup_vbuf.c \ 858 lp_state_blend.c \ 859 lp_state_clip.c \ 860 lp_state_derived.c \ 861 lp_state_fs.c \ 862 lp_state_gs.c \ 863 lp_state_rasterizer.c \ 864 lp_state_sampler.c \ 865 lp_state_setup.c \ 866 lp_state_so.c \ 867 lp_state_surface.c \ 868 lp_state_vertex.c \ 869 lp_state_vs.c \ 870 lp_surface.c \ 871 lp_tex_sample.c \ 872 lp_texture.c 873 874 GALLIUM_SOURCES.drivers/softpipe = \ 875 sp_buffer.c \ 876 sp_clear.c \ 877 sp_context.c \ 878 sp_compute.c \ 879 sp_draw_arrays.c \ 880 sp_fence.c \ 881 sp_flush.c \ 882 sp_fs_exec.c \ 883 sp_image.c \ 884 sp_prim_vbuf.c \ 885 sp_quad_blend.c \ 886 sp_quad_depth_test.c \ 887 sp_quad_fs.c \ 888 sp_quad_pipe.c \ 889 sp_quad_stipple.c \ 890 sp_query.c \ 891 sp_screen.c \ 892 sp_setup.c \ 893 sp_state_blend.c \ 894 sp_state_clip.c \ 895 sp_state_derived.c \ 896 sp_state_image.c \ 897 sp_state_rasterizer.c \ 898 sp_state_sampler.c \ 899 sp_state_shader.c \ 900 sp_state_so.c \ 901 sp_state_surface.c \ 902 sp_state_vertex.c \ 903 sp_surface.c \ 904 sp_tex_sample.c \ 905 sp_tex_tile_cache.c \ 906 sp_texture.c \ 907 sp_tile_cache.c 908 909 GALLIUM_SOURCES.winsys/sw/null = \ 910 null_sw_winsys.c 911 912 GALLIUM_SOURCES.winsys/sw/wrapper = \ 913 wrapper_sw_winsys.c 914 915 GALLIUM_SOURCES.winsys/sw/dri = \ 916 dri_sw_winsys.c 917 918 GALLIUM_SOURCES.winsys/sw/kms-dri = \ 919 kms_dri_sw_winsys.c 920 921 GALLIUM_SOURCES.state_trackers/dri = \ 922 dri_context.c \ 923 dri_drawable.c \ 924 dri_helpers.c \ 925 dri_query_renderer.c \ 926 dri_screen.c \ 927 drisw.c \ 928 dri2.c 929 .for _f in ${GALLIUM_SOURCES.state_trackers/dri} 930 CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/gallium/state_trackers/dri/common 931 .endfor 932 933 # missing 934 CPPFLAGS+= \ 935 -DGALLIUM_SOFTPIPE \ 936 -DGALLIUM_STATIC_TARGETS=1 \ 937 -DMESA_EGL_NO_X11_HEADERS 938 939 .for _d in ${GALLIUM_SUBDIRS} 940 SRCS+= ${GALLIUM_SOURCES.${_d}} 941 .PATH: ${X11SRCDIR.Mesa}/src/gallium/${_d} 942 . for _s in ${GALLIUM_SOURCES.${_d}} 943 CPPFLAGS.${_s}+= -I${X11SRCDIR.Mesa}/src/gallium/${_d} 944 . endfor 945 .endfor 946 947 #. if defined(${GALLIUM_SOURCES.${_d}}) 948 #SRCS+= ${GALLIUM_SOURCES.${_d}} 949 #. endif 950 951 .include "../libloader.mk" 952 953 .if ${BUILD_RADEON} == 1 954 CFLAGS+= -pthread 955 LDFLAGS+= -pthread 956 LIBDPLIBS+= pthread ${.CURDIR}/../../../../../lib/libpthread 957 .endif 958 959 LIBDPLIBS+= m ${.CURDIR}/../../../../../lib/libm 960 .if ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1 961 LIBDPLIBS+= drm ${.CURDIR}/../libdrm 962 .if ${BUILD_I915} == 1 963 LIBDPLIBS+= drm_intel ${.CURDIR}/../libdrm_intel 964 .endif 965 .if ${BUILD_RADEON} == 1 966 LIBDPLIBS+= drm_radeon ${.CURDIR}/../libdrm_radeon 967 LIBDPLIBS+= drm_amdgpu ${.CURDIR}/../libdrm_amdgpu 968 .endif # ${BUILD_RADEON} == 1 969 .if ${BUILD_NOUVEAU} == 1 970 LIBDPLIBS+= drm_nouveau ${.CURDIR}/../libdrm_nouveau 971 .endif # ${BUILD_NOUVEAU} == 1 972 .endif # ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1 973 LIBDPLIBS+= glapi ${.CURDIR}/../libglapi 974 LIBDPLIBS+= expat ${.CURDIR}/../../../../../external/mit/expat/lib/libexpat 975 LIBDPLIBS+= terminfo ${.CURDIR}/../../../../../lib/libterminfo 976 LIBDPLIBS+= z ${.CURDIR}/../../../../../lib/libz 977 LIBDPLIBS+= execinfo ${.CURDIR}/../../../../../lib/libexecinfo 978 LIBDPLIBS+= X11-xcb ${.CURDIR}/../libX11/libX11-xcb 979 LIBDPLIBS+= xcb-dri2 ${.CURDIR}/../libxcb/dri2 980 981 # gallium drivers requiring LLVM 982 .if ${BUILD_LLVMPIPE} == 1 || ${BUILD_RADEON} == 1 983 984 LLVMRT_LIBS= \ 985 TransformsCoroutines \ 986 Passes \ 987 MCJIT \ 988 ExecutionEngine \ 989 RuntimeDyld 990 991 .if ${BUILD_RADEON} == 1 992 LLVMRT_LIBS+= \ 993 AMDGPUCodeGen \ 994 AMDGPUMCTargetDesc \ 995 AMDGPUTargetInfo \ 996 AMDGPUAsmParser \ 997 AMDGPUUtils 998 .endif 999 1000 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 1001 # XXX duplicates 1002 LLVMRT_LIBS+= \ 1003 X86Disassembler \ 1004 X86CodeGen \ 1005 X86MCTargetDesc \ 1006 X86Disassembler \ 1007 X86MCTargetDesc \ 1008 X86TargetInfo \ 1009 X86Utils 1010 .endif 1011 1012 .if ${MACHINE_CPU} == "aarch64" 1013 LLVMRT_LIBS+= \ 1014 AArch64AsmParser \ 1015 AArch64CodeGen \ 1016 AArch64MCTargetDesc \ 1017 AArch64Utils \ 1018 AArch64Disassembler \ 1019 AArch64TargetInfo 1020 .endif 1021 1022 .if ${MACHINE_CPU} == "arm" 1023 LLVMRT_LIBS+= \ 1024 ARMCodeGen \ 1025 ARMDisassembler \ 1026 ARMTargetInfo \ 1027 ARMMCTargetDesc \ 1028 ARMAsmParser \ 1029 ARMUtils 1030 .endif 1031 1032 .if ${MACHINE_CPU} == "mips" 1033 LLVMRT_LIBS+= \ 1034 MipsCodeGen \ 1035 MipsDisassembler \ 1036 MipsAsmParser \ 1037 MipsMCTargetDesc \ 1038 MipsTargetInfo 1039 .endif 1040 1041 .if ${MACHINE_CPU} == "powerpc" 1042 LLVMRT_LIBS+= \ 1043 PowerPCCodeGen \ 1044 PowerPCDisassembler \ 1045 PowerPCTargetInfo \ 1046 PowerPCMCTargetDesc \ 1047 PowerPCAsmParser 1048 .endif 1049 1050 LLVMRT_LIBS+= \ 1051 GlobalISel \ 1052 MCDisassembler \ 1053 SelectionDAG \ 1054 AsmPrinter \ 1055 CodeGen \ 1056 TransformsCFGuard \ 1057 Target \ 1058 InstCombine \ 1059 ScalarOpts \ 1060 DebugInfoCodeView \ 1061 DebugInfoDWARF \ 1062 Object \ 1063 BitReader \ 1064 TextAPI \ 1065 MIRParser \ 1066 MCParser \ 1067 MC \ 1068 ipo \ 1069 Instrumentation \ 1070 IRReader \ 1071 AsmParser \ 1072 Vectorize \ 1073 TransformsAggressiveInstCombine \ 1074 ProfileData \ 1075 Analysis \ 1076 IR \ 1077 Remarks \ 1078 BitstreamReader \ 1079 Linker \ 1080 BinaryFormat \ 1081 TransformsUtils \ 1082 Support \ 1083 Demangle 1084 1085 .include "${NETBSDSRCDIR}/external/apache2/llvm/link.mk" 1086 1087 .endif # ${BUILD_LLVM_PIPE} == 1 || ${BUILD_RADEON} == 1 1088 1089 LDFLAGS+= -Wl,--version-script=${X11SRCDIR.Mesa}/src/gallium/targets/dri/dri.sym 1090 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_CPU} == "aarch64" 1091 LDFLAGS+= -Wl,-z,defs 1092 .endif 1093 1094 ## build mesagallium parts 1095 MESA_SRC_MODULES= main math vbo state_tracker program asm_s 1096 .if ${BUILD_RADEON} == 1 1097 MESA_SRC_MODULES+= amd 1098 .endif 1099 1100 .include "../libmesa.mk" 1101 .include "../libglsl.mk" 1102 1103 # Special addition for just gallium; it misses the rest of asm_c files. 1104 .PATH: ${X11SRCDIR.Mesa}/src/mesa/x86 1105 SRCS+= common_x86.c 1106 1107 .if ${MACHINE} == "amd64" || ${MACHINE} == "i386" 1108 SRCS+= streaming-load-memcpy.c 1109 CPPFLAGS.streaming-load-memcpy.c+= -msse4.1 1110 .endif 1111 1112 # Needs 64bit atomics 1113 CPPFLAGS.i386+= -march=i586 1114 CPPFLAGS+= ${CPPFLAGS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}} 1115 1116 CPPFLAGS.r600_pipe_common.c+= -DMESA_LLVM_VERSION_STRING=\"7.0.0\" 1117 CPPFLAGS.si_get.c+= -DMESA_LLVM_VERSION_STRING=\"7.0.0\" 1118 1119 .include "../driver.mk" 1120 1121 1122 .PATH: ${X11SRCDIR.Mesa}/src/gallium/targets/dri 1123 SRCS+= target.c 1124 1125 CPPFLAGS+= \ 1126 -I${X11SRCDIR.Mesa}/src/gallium/include \ 1127 -I${X11SRCDIR.Mesa}/src/gallium/auxiliary \ 1128 -I${X11SRCDIR.Mesa}/src/gallium/drivers \ 1129 -I${X11SRCDIR.Mesa}/../src/mesa/drivers/dri/common 1130 1131 CPPFLAGS.target.c += \ 1132 -DDRI_TARGET \ 1133 -DGALLIUM_NOOP \ 1134 -DGALLIUM_RBUG \ 1135 -DGALLIUM_TRACE \ 1136 -DGALLIUM_SOFTPIPE \ 1137 -I${X11SRCDIR.Mesa}/src/gallium/state_trackers/dri \ 1138 -I${X11SRCDIR.Mesa}/src/loader \ 1139 -I${X11SRCDIR.Mesa}/../src/util \ 1140 -I${X11SRCDIR.Mesa}/../src/gallium/drivers \ 1141 -I${X11SRCDIR.Mesa}/src/gallium/winsys 1142 1143 .if ${BUILD_LLVMPIPE} == 1 1144 CPPFLAGS.target.c += \ 1145 -DGALLIUM_LLVMPIPE 1146 .endif #${BUILD_LLVMPIPE} == 1 1147 1148 .if ${BUILD_I915} == 1 1149 CPPFLAGS.target.c += \ 1150 -DGALLIUM_I915 \ 1151 -DGALLIUM_ILO 1152 .endif 1153 1154 .if ${BUILD_RADEON} == 1 1155 CPPFLAGS.target.c += \ 1156 -DGALLIUM_R200 \ 1157 -DGALLIUM_R300 \ 1158 -DGALLIUM_R600 \ 1159 -DGALLIUM_RADEONSI 1160 .endif # ${BUILD_RADEON} == 1 1161 1162 .if ${BUILD_NOUVEAU} == 1 1163 CPPFLAGS.target.c += \ 1164 -DGALLIUM_NOUVEAU 1165 .endif # ${BUILD_NOUVEAU} == 1 1166 1167 CWARNFLAGS.clang+= -Wno-error=constant-conversion \ 1168 -Wno-error=tautological-constant-out-of-range-compare \ 1169 -Wno-error=pointer-sign \ 1170 -Wno-error=switch \ 1171 -Wno-error=absolute-value \ 1172 -Wno-error=tautological-compare \ 1173 -Wno-error=static-in-inline \ 1174 -Wno-error=logical-not-parentheses \ 1175 -Wno-error=constant-logical-operand \ 1176 -Wno-error=unknown-warning-option \ 1177 -Wno-error=typedef-redefinition \ 1178 -Wno-error=enum-conversion # https://bugs.freedesktop.org/show_bug.cgi?id=109761 1179 1180 CWARNFLAGS+= -Wno-error=stack-protector 1181 1182 .include <bsd.x11.mk> 1183 LIBDIR= ${X11USRLIBDIR}/modules/dri 1184 1185 .for _d in ${DRIVERS} 1186 SYMLINKS+= gallium_dri.so ${DRIDIR}/${_d}_dri.so 1187 SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR} 1188 .if ${MKDEBUG} != "no" 1189 SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug 1190 .endif 1191 .endfor 1192 1193 .if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc" 1194 COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :} 1195 .endif 1196 1197 .if ${MACHINE_ARCH} == "vax" 1198 COPTS.nir.c += -O1 1199 .endif 1200 1201 .include <bsd.lib.mk> 1202 # Don't regenerate c files 1203 .y.c: 1204