LS7-Emulator/Makefile
2025-01-07 14:00:25 +01:00

28 lines
489 B
Makefile

.ONESHELL:
CC=gcc
O=2
CFLAGS=`sdl2-config --cflags` `sdl2-config --libs`
PREFIX=$(HOME)/.local
all: ls7emulator
clean:
rm -rf bin/ls7emulator bin/
rm -rf src/*.o
ls7emulator:
cd src
$(CC) main.c -o ls7emulator $(CFLAGS) -O$(O)
rm ../bin -rf
mkdir ../bin
cd ../bin
mv ../src/ls7emulator ./
strip ls7emulator
cp ../src/assets/font.ttf ./
install: ls7emulator
mkdir -p $(PREFIX)/bin
install bin/ls7emulator $(PREFIX)/bin/ls7emulator
cp bin/ls7emulator /usr/bin/ls7emulator