LS7-Emulator/Makefile

28 lines
489 B
Makefile
Raw Normal View History

2024-11-25 00:15:48 +01:00
.ONESHELL:
CC=gcc
2024-12-12 13:24:03 +01:00
O=2
2025-01-07 14:00:25 +01:00
CFLAGS=`sdl2-config --cflags` `sdl2-config --libs`
2024-11-24 12:56:11 +01:00
PREFIX=$(HOME)/.local
all: ls7emulator
clean:
2024-11-25 00:15:48 +01:00
rm -rf bin/ls7emulator bin/
2024-12-10 09:58:03 +01:00
rm -rf src/*.o
2024-11-24 12:56:11 +01:00
2024-11-25 00:15:48 +01:00
ls7emulator:
cd src
2025-01-07 14:00:25 +01:00
$(CC) main.c -o ls7emulator $(CFLAGS) -O$(O)
2024-11-25 00:15:48 +01:00
rm ../bin -rf
mkdir ../bin
cd ../bin
mv ../src/ls7emulator ./
2024-11-24 12:56:11 +01:00
strip ls7emulator
2024-12-17 13:10:01 +01:00
cp ../src/assets/font.ttf ./
2024-11-24 12:56:11 +01:00
install: ls7emulator
mkdir -p $(PREFIX)/bin
2024-11-25 00:15:48 +01:00
install bin/ls7emulator $(PREFIX)/bin/ls7emulator
cp bin/ls7emulator /usr/bin/ls7emulator