summarylogtreecommitdiffstats
path: root/patch-Makefile.diff
blob: db2c6880732607e1f9e89b0f3972133fee56ca59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile.orig	2021-01-20 15:08:57.766406679 +0100
+++ Makefile	2021-01-20 15:11:08.493566453 +0100
@@ -3,7 +3,8 @@
 # Sources
 PROJECT_ROOT=./SIDFactoryII
 SOURCE=$(PROJECT_ROOT)/source
-SRC=$(PROJECT_ROOT)/main.cpp $(shell find $(SOURCE) -name "*.cpp")
+SRC_TMP=$(PROJECT_ROOT)/main.cpp $(shell find $(SOURCE) -name "*.cpp")
+SRC=$(patsubst %miniz_tester.cpp,,$(SRC_TMP))
 
 # Artifacts
 APP_NAME=SIDFactoryII
@@ -39,7 +40,7 @@
 	$(CC) $(CC_FLAGS) -c $< -o $@
 
 # Determine all .o files to be built
-OBJ = $(SRC:.cpp=.o)
+OBJ = $(SRC:.cpp=.o) $(SOURCE)/libraries/miniz/miniz.o
 
 # Compile executable
 $(EXE): $(OBJ) $(ARTIFACTS_FOLDER)