aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-03-15 13:30:06 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-03-15 13:30:06 +0100
commit9c083f63d86f5a7024e832af07fbf14e2656c938 (patch)
tree201a54c9f677b26076f1fd99ad4001c9ddfcddd6
parentf2ebdc58bb8e9091c4f823bb6d9e521b32087d40 (diff)
install targets
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 55b1e1c..a41a618 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
CC := gcc
+INSTALL := install
CFLAGS := -O2 -g -Wall -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations -Wl,--gc-sections
LDFLAGS :=
RM := rm -rf
@@ -57,6 +58,10 @@ clean:
-$(RM) aes asciihexer dummyshell gol suidcmd xidle
-@echo ' '
+install: $(TARGETS)
+ $(INSTALL) -d $(PREFIX)/usr/bin
+ $(INSTALL) -s $(TARGETS) $(PREFIX)/usr/bin
+
rebuild: clean all
.PHONY: all clean strip