File: Makefile

package info (click to toggle)
dxvk 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,224 kB
  • sloc: cpp: 123,108; ansic: 76,058; sh: 545; python: 174; makefile: 81
file content (22 lines) | stat: -rw-r--r-- 469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2024 Collabora Ltd.
# SPDX-License-Identifier: Zlib

all:

CXXFLAGS += -std=c++17
PKG_CONFIG ?= pkg-config

all: test_native_d3d9
all: test_native_d3d11

test_native_d3d9: %: %.cpp Makefile
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o$@ \
		$< \
		-DDXVK_WSI_SDL2 \
		`$(PKG_CONFIG) --cflags --libs dxvk-d3d9 sdl2`

test_native_d3d11: %: %.cpp Makefile
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o$@ \
		$< \
		-DDXVK_WSI_SDL3 \
		`$(PKG_CONFIG) --cflags --libs dxvk-d3d11 sdl3`