diff options
author | colbydray <colbydray@gmail.com> | 2020-06-03 23:00:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 23:00:21 -0400 |
commit | 8d0f9ca94502e0f89f8f07f9cce886f6d439834f (patch) | |
tree | 756c7fbc24a8ef71cd1660f1bbedfe07617ab094 | |
parent | 81acc54ca0b9776b86fc689a40dc9a358ec73730 (diff) | |
download | emu2-8d0f9ca94502e0f89f8f07f9cce886f6d439834f.tar.gz |
install and uninstall (#13)
* install
* Update Makefile
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |