LS7-Emulator/Makefile

26 lines
446 B
Makefile
Raw Normal View History

2024-11-25 00:15:48 +01:00
.ONESHELL:
CC=gcc
2024-11-24 12:56:11 +01:00
CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics
PREFIX=$(HOME)/.local
all: ls7emulator
clean:
2024-11-25 00:15:48 +01:00
rm -rf bin/ls7emulator bin/
2024-11-24 12:56:11 +01:00
2024-11-25 00:15:48 +01:00
ls7emulator:
cd src
2024-12-02 14:05:26 +01:00
$(CC) ls7emulator.c -o ls7emulator $(CFLAGS) -O2
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
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