aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-08-03 10:12:38 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-08-03 10:12:38 -0400
commita1799e77a38ba00f37ae2ff3d9d04573ccb0beaa (patch)
tree2d68bb08db588361855b2dd9be151ef1cc7f8604
parentb47a014f1460ffd6479fd8306c679475b03f27f1 (diff)
added install command
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 758f736..38a15a2 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ LIB = libtinyalsa.a
SHLIB = libtinyalsa.so
CROSS_COMPILE =
+.PHONY: all
all: $(LIB) $(SHLIB) tinyplay tinycap tinymix tinypcminfo
tinyplay: $(SHLIB) tinyplay.o
@@ -29,6 +30,15 @@ $(LIB): $(OBJECTS)
%.o: %.c
$(CROSS_COMPILE)$(CC) $(CFLAGS) -fPIC -c $^ -I$(INC) -o $@
+.PHONY: clean
clean:
-rm $(LIB) $(SHLIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \
tinymix.o tinymix tinypcminfo.o tinypcminfo
+
+.PHONY: install
+install: $(LIB) $(SHLIB)
+ cp -u $(SHLIB) $(PREFIX)/lib/$(SHLIB)
+ cp -u $(LIB) $(PREFIX)/lib/$(LIB)
+ mkdir -p $(PREFIX)/include/tinyalsa
+ cp -u $(INC)/tinyalsa/asoundlib.h $(PREFIX)/include/tinyalsa/asoundlib.h
+