From 40898e8340d8fe1ec73c0e7afb10cd257d62510a Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 5 Mar 2022 22:51:07 +0100 Subject: [PATCH] Change build system to avoid compilation errors --- Makefile | 4 +++- src/main.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8c56874..83585f8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ BASE_UXN := src/uxn SRC_DIR ?= src BUILD_DIR ?= build -SRC_MAIN ?= $(SRC_DIR)/main.c +SRC_MAIN ?= $(SRC_DIR)/main.c \ + $(BASE_UXN)/src/uxn.c \ + $(BASE_UXN)/src/devices/system.c EXE_NAME ?= uxnfb BIN := $(BUILD_DIR)/$(EXE_NAME) UXN_HEAD := $(BASE_UXN)/src/uxn.h diff --git a/src/main.c b/src/main.c index 222fef3..025b2e6 100644 --- a/src/main.c +++ b/src/main.c @@ -10,8 +10,8 @@ #include "shorthand.h" #include "ppu.c" -#include "uxn/src/devices/system.c" -#include "uxn/src/uxn.c" +#include "uxn/src/uxn.h" +#include "uxn/src/devices/system.h" #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X))