pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
final clean up
[sped.git]
/
makefile
diff --git
a/makefile
b/makefile
index
e77e686
..
26aeb07
100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-2,8
+2,9
@@
CC=gcc
CFLAGS=-m32 -no-pie
ASM=nasm
ASMFLAGS=-f elf32 -g
CFLAGS=-m32 -no-pie
ASM=nasm
ASMFLAGS=-f elf32 -g
+PREFIX=/usr/bin
-.PHONY: clean
+.PHONY: clean
install uninstall
make: sped
make: sped
@@
-13,5
+14,13
@@
make: sped
sped: sped.o fileutils.o repl.o utils.o
$(CC) $(CFLAGS) -o $@ $^
sped: sped.o fileutils.o repl.o utils.o
$(CC) $(CFLAGS) -o $@ $^
+install: sped
+ mkdir -p $(PREFIX)
+ cp -f sped $(PREFIX)
+ chmod 775 $(PREFIX)/sped
+
+uninstall:
+ rm -f $(PREFIX)/sped
+
clean:
rm sped *.o
clean:
rm sped *.o