From 8d0f9ca94502e0f89f8f07f9cce886f6d439834f Mon Sep 17 00:00:00 2001 From: colbydray Date: Wed, 3 Jun 2020 23:00:21 -0400 Subject: install and uninstall (#13) * install * Update Makefile --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3