vkd3d/Makefile.am

36 lines
872 B
Makefile
Raw Normal View History

2016-09-21 00:05:15 -07:00
ACLOCAL_AMFLAGS = -I m4
2016-09-21 03:57:24 -07:00
AM_CFLAGS = @VKD3D_CFLAGS@
AM_CPPFLAGS = -I$(srcdir)/include -I$(srcdir)/include/dummy
2016-09-21 03:57:24 -07:00
widl_headers = \
include/d3d12.h
2016-09-21 03:57:24 -07:00
vkd3d_public_headers = \
include/d3d12.h \
include/dummy/rpc.h \
include/dummy/rpcndr.h \
include/dxgibase.h \
include/vkd3d_windows.h
2016-09-21 03:57:24 -07:00
BUILT_SOURCES = $(widl_headers)
CLEANFILES = $(widl_headers)
2016-09-21 03:57:24 -07:00
lib_LTLIBRARIES = libvkd3d.la
libvkd3d_la_SOURCES = \
libs/vkd3d/vkd3d_main.c
2016-09-21 03:57:24 -07:00
pkgconfigdir = $(libdir)/pkgconfig
pkginclude_HEADERS = $(vkd3d_public_headers)
nodist_pkgconfig_DATA = libvkd3d.pc
2016-09-21 03:57:24 -07:00
$(widl_headers): %.h: %.idl
$(WIDL) -o $@ $<
2016-09-21 03:57:24 -07:00
libvkd3d.pc: $(srcdir)/libs/vkd3d/libvkd3d.pc.in
sed -e 's![@]prefix[@]!$(prefix)!g' \
-e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
-e 's![@]includedir[@]!$(includedir)!g' \
-e 's![@]libdir[@]!$(libdir)!g' \
-e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
$< > $@