Add install target

This commit is contained in:
Aaro Altonen 2019-06-04 08:12:09 +03:00
parent af605b182d
commit 4286d20023
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
.PHONY: all clean obj
.PHONY: all clean obj install
CXX = g++
CFLAGS = -g -Wall -Wextra -O2 -std=c++11
@ -9,6 +9,9 @@ TARGET = librtp.a
all: $(TARGET)
install: $(TARGET)
install -m 577 $(TARGET) /usr/local/lib/
$(TARGET): $(OBJECTS)
$(AR) rcs $@ $(OBJECTS)