aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcolbydray <colbydray@gmail.com>2020-06-03 23:00:21 -0400
committerGitHub <noreply@github.com>2020-06-03 23:00:21 -0400
commit8d0f9ca94502e0f89f8f07f9cce886f6d439834f (patch)
tree756c7fbc24a8ef71cd1660f1bbedfe07617ab094
parent81acc54ca0b9776b86fc689a40dc9a358ec73730 (diff)
downloademu2-8d0f9ca94502e0f89f8f07f9cce886f6d439834f.tar.gz
install and uninstall (#13)
* install * Update Makefile
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea8c8d2..2439a77 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
CC=gcc
CFLAGS=-O3 -flto -Wall -g -Werror=implicit-function-declaration -Werror=int-conversion
LDLIBS=-lm
+INSTALL=install -c
+PREFIX=/usr
OBJS=\
cpu.o\
@@ -32,6 +34,12 @@ clean:
rm -f emu2
rmdir obj
+install:
+ ${INSTALL} emu2 ${PREFIX}/bin
+
+uninstall:
+ rm -f ${PREFIX}/bin/emu2
+
# Generated with gcc -MM src/*.c
obj/codepage.o: src/codepage.c src/codepage.h src/dbg.h src/env.h
obj/cpu.o: src/cpu.c src/cpu.h src/dbg.h src/dis.h src/emu.h
Un proyecto texto-plano.xyz