26 lines
446 B
Makefile
26 lines
446 B
Makefile
.ONESHELL:
|
|
|
|
CC=gcc
|
|
CFLAGS=-lcsfml-window -lcsfml-system -lcsfml-graphics
|
|
PREFIX=$(HOME)/.local
|
|
|
|
all: ls7emulator
|
|
|
|
clean:
|
|
rm -rf bin/ls7emulator bin/
|
|
|
|
ls7emulator:
|
|
cd src
|
|
$(CC) ls7emulator.c -o ls7emulator $(CFLAGS) -O2
|
|
|
|
rm ../bin -rf
|
|
mkdir ../bin
|
|
cd ../bin
|
|
mv ../src/ls7emulator ./
|
|
strip ls7emulator
|
|
|
|
install: ls7emulator
|
|
mkdir -p $(PREFIX)/bin
|
|
install bin/ls7emulator $(PREFIX)/bin/ls7emulator
|
|
cp bin/ls7emulator /usr/bin/ls7emulator
|