1# $NetBSD: Makefile.defines,v 1.4 2019/01/10 09:10:31 mrg Exp $ 2 3# common defiles for libdrm components 4 5CPPFLAGS+= \ 6 -DHAVE_INTTYPES_H \ 7 -DHAVE_OPEN_MEMSTREAM \ 8 -DHAVE_VISIBILITY \ 9 -DHAVE_SETENV \ 10 -DHAVE_STDINT_H \ 11 -DHAVE_STRINGS_H \ 12 -DHAVE_STRING_H \ 13 -DHAVE_SYS_STAT_H \ 14 -DHAVE_SYS_SYSCTL_H \ 15 -DHAVE_SYS_TYPES_H \ 16 -DHAVE_UNISTD_H 17 18# NetBSD has __sync_*(). 19CPPFLAGS+= -DHAVE_LIBDRM_ATOMIC_PRIMITIVES \ 20 21CPPFLAGS+= -DHAVE_NOUVEAU \ 22 -DHAVE_AMDGPU \ 23 -DHAVE_RADEON 24 25COPTS+= -fvisibility=hidden 26