aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-10-01 12:33:46 -0400
committerTaylor Holberton <taylorcholberton@gmail.com>2016-10-01 12:33:46 -0400
commitb88fd4ff9c6ae7af26c81b6fee069dc90ef2707d (patch)
tree9b4aff781116b8c812bcf7c7a70c9581b7c56fae /Makefile
parentc01d4a386cfc5997f877ae44712ea6304e8756bd (diff)
put programs into utils dir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 4 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index d895384..55bd9e6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,19 +8,8 @@ CROSS_COMPILE =
PREFIX = /usr/local
.PHONY: all
-all: $(LIB) $(SHLIB) tinyplay tinycap tinymix tinypcminfo
-
-tinyplay: $(SHLIB) tinyplay.o
- $(CROSS_COMPILE)$(CC) $(LDFLAGS) tinyplay.o -L. -ltinyalsa -o tinyplay
-
-tinycap: $(SHLIB) tinycap.o
- $(CROSS_COMPILE)$(CC) $(LDFLAGS) tinycap.o -L. -ltinyalsa -o tinycap
-
-tinymix: $(SHLIB) tinymix.o
- $(CROSS_COMPILE)$(CC) $(LDFLAGS) tinymix.o -L. -ltinyalsa -o tinymix
-
-tinypcminfo: $(SHLIB) tinypcminfo.o
- $(CROSS_COMPILE)$(CC) $(LDFLAGS) tinypcminfo.o -L. -ltinyalsa -o tinypcminfo
+all: $(LIB) $(SHLIB)
+ $(MAKE) -C utils
$(SHLIB): $(OBJECTS)
$(CROSS_COMPILE)$(CC) $(LDFLAGS) -shared $(OBJECTS) -o $(SHLIB)
@@ -33,8 +22,8 @@ $(LIB): $(OBJECTS)
.PHONY: clean
clean:
- -rm $(LIB) $(SHLIB) $(OBJECTS) tinyplay.o tinyplay tinycap.o tinycap \
- tinymix.o tinymix tinypcminfo.o tinypcminfo
+ -rm $(LIB) $(SHLIB) $(OBJECTS)
+ $(MAKE) -C utils clean
.PHONY: install
install: $(LIB) $(SHLIB)