diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-12-13 23:27:55 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-12-13 23:27:55 +0100 |
commit | 9bc767fac61c19455f83d9f4bcf9e9f17411396c (patch) | |
tree | ba80fcac7895011cbf05da9a497de5fae1ae91b7 | |
parent | c0ab2bef36fc6d03e4206e02b82a2610462419d3 (diff) | |
download | polecat-9bc767fac61c19455f83d9f4bcf9e9f17411396c.tar.gz polecat-9bc767fac61c19455f83d9f4bcf9e9f17411396c.zip |
Update makefile to compile conditional targets by default
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |