aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-08-18 23:58:16 +0200
committerJan200101 <sentrycraft123@gmail.com>2020-08-18 23:58:16 +0200
commitd53109eaa890ab807b66961a89291cea3cd3c003 (patch)
treea62382b32014266f5aecb6f639d0962bb1682bf0 /Makefile
parent1753e2b151cbb4af75a4e9ea61720b3704b03805 (diff)
downloadpolecat-d53109eaa890ab807b66961a89291cea3cd3c003.tar.gz
polecat-d53109eaa890ab807b66961a89291cea3cd3c003.zip
first part of a proper lutris implementation and cleanup0.1.4
- remove all old build platform related variables - change behavior of clean - change tabs into spaces - make XDG fetching method static - replace strcpy and cat with strn alternative with proper bounds checking - add cache dir - reenable dxvk and download from ram - completely rework lutris fetching and convert it into an interal struct - only show http errors in debug - add sanity checks to methods with possible NULL return - change extracting methods to extract tar from ram
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 7bef6be..0a1ec18 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# GENERAL VARIABLES
NAME := polecat
-VERSION := 0.1.3
+VERSION := 0.1.4
TARGET ?= debug
DEBUG := 0
ifeq ($(TARGET),debug)
@@ -17,15 +17,8 @@ CROSS ?=
RM := rm -rf
MKDIR := mkdir -p
DOXYGEN := doxygen
-PKGCONFIG := $(CROSS)pkg-config
-CURLCONFIG := $(CROSS)curl-config
-
-
-ifndef PLATFORM
- PLATFORM := $(HOSTPLATFORM)
-endif
-
-# CROSS COMPILATION ADAPTION
+PKGCONFIG := ${CROSS}pkg-config
+CURLCONFIG := ${CROSS}curl-config
# DIRECTORIES
BIN_DIR := bin
@@ -78,7 +71,7 @@ $(OBJ_DIR)/$(TARGET)/%.o: $(SRC_DIR)/%.c | $(OBJ_DIR)/$(TARGET)
${RECIPE_IF} ${CROSS}${CC} -c -o$@ $< ${CFLAGS} ${DEFINES} ${RECIPE_RESULT_COMPILE}
clean:
- ${RM} ${BIN_DIR} ${OBJ_DIR} ${NAME}.tar 2> /dev/null
+ ${RM} ${BIN_DIR} ${OBJ_DIR} 2> /dev/null
loc:
-find ${SRC_DIR} ${INC_DIR} -name '*.cpp' -o -name '*.c' -o -name '*.h' -o -name '*.hpp' -type f | xargs wc -l
@@ -86,6 +79,8 @@ loc:
tar: ${NAME}.tar
dist: tar
+distclean:
+ ${RM} ${NAME}.tar 2> /dev/null
${NAME}.tar:
${ARCHIVE_STATUS}