aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-12-13 23:27:55 +0100
committerJan200101 <sentrycraft123@gmail.com>2022-12-13 23:27:55 +0100
commit9bc767fac61c19455f83d9f4bcf9e9f17411396c (patch)
treeba80fcac7895011cbf05da9a497de5fae1ae91b7 /Makefile
parentc0ab2bef36fc6d03e4206e02b82a2610462419d3 (diff)
downloadpolecat-9bc767fac61c19455f83d9f4bcf9e9f17411396c.tar.gz
polecat-9bc767fac61c19455f83d9f4bcf9e9f17411396c.zip
Update makefile to compile conditional targets by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0f21562..7a52f5f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# GENERAL VARIABLES
NAME ?= polecat
-VERSION ?= 0.1.9
+VERSION ?= 0.2.0
TARGET ?= release
DEBUG := 0
ifeq ($(TARGET),debug)
@@ -37,8 +37,8 @@ ifndef PLATFORM
endif
# CROSS COMPILATION
-CROSS :=
-OBJ_EXT := o
+CROSS ?=
+OBJ_EXT ?= o
ifeq ($(PLATFORM),WINDOWS)
OUT_EXT := .exe
@@ -46,7 +46,7 @@ ifeq ($(PLATFORM),WINDOWS)
endif
# DIRECTORIES
-BUILD_DIR := build
+BUILD_DIR ?= build
BIN_DIR := $(BUILD_DIR)
OBJ_DIR := $(BUILD_DIR)/$(TARGET)
@@ -70,6 +70,9 @@ LIBS := $(shell $(PKGCONFIG) --libs json-c) $(shell $(PKGCONFIG) --li
BINFLAGS := $(LIBS)
INCLUDEFLAGS :=
DEFINES := -DNAME=\"${NAME}\" -DVERSION=\"${VERSION}\"
+DEFINES += -DDXVK_ENABLED
+DEFINES += -DLUTRIS_ENABLED
+DEFINES += -DWINE_ENABLED
ifneq ($(DEBUG), 1)
DEFINES += -DNDEBUG
endif