From 2e7086e91b68458b17aeff75d6147bb780515170 Mon Sep 17 00:00:00 2001 From: 0xMAC8205 Date: Sun, 24 Nov 2024 12:57:41 +0100 Subject: [PATCH] Updated Makefile --- src/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..f89cfb1 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,18 @@ +CC=gcc +CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics +PREFIX=$(HOME)/.local +CACHE=$(shell if [ "$$XDG_CACHE_HOME" ]; then echo "$$XDG_CACHE_HOME"; else echo "$$HOME"/.cache; fi) + +all: ls7emulator + +clean: + rm -f ls7emulator $(CACHE)/ls7emulator + +ls7emulator: ls7emulator.c ls7emulator.h config.h + $(CC) ls7emulator.c -o ls7emulator $(CFLAGS) + strip ls7emulator + +install: ls7emulator + mkdir -p $(PREFIX)/bin + install ./ls7emulator $(PREFIX)/bin/ls7emulator + cp ./ls7emulator /usr/bin/ls7emulator