Compare commits

..

4 Commits

Author SHA1 Message Date
6ec0f108e8 Added .gitignore 2024-11-24 13:20:52 +01:00
9c9161e696 Moved Makefile 2024-11-24 13:20:31 +01:00
2e7086e91b Updated Makefile 2024-11-24 12:57:41 +01:00
34eb4f1687 Added Makefile 2024-11-24 12:56:11 +01:00
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
bin/

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
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