aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 6713850..38cfc38 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -8,10 +8,10 @@ CC = $(CROSS_COMPILE)gcc
CFLAGS += -Wall -Wextra -Werror -Wfatal-errors
CFLAGS += -I ../include
-CFLAGS += -L ../src
CFLAGS += -fPIC
CFLAGS += -O2
+LDFLAGS += -L ../src
LDFLAGS += -pie
VPATH = ../src:../include/tinyalsa
@@ -19,19 +19,28 @@ VPATH = ../src:../include/tinyalsa
.PHONY: all
all: -ltinyalsa tinyplay tinycap tinymix tinypcminfo
-tinyplay: tinyplay.c pcm.h mixer.h asoundlib.h libtinyalsa.a
+tinyplay: tinyplay.o libtinyalsa.a
-tinycap: tinycap.c pcm.h mixer.h asoundlib.h libtinyalsa.a
+tinyplay.o: tinyplay.c pcm.h mixer.h asoundlib.h
-tinymix: tinymix.c pcm.h mixer.h asoundlib.h libtinyalsa.a
+tinycap: tinycap.o libtinyalsa.a
-tinypcminfo: tinypcminfo.c pcm.h mixer.h asoundlib.h libtinyalsa.a
+tinycap.o: tinycap.c pcm.h mixer.h asoundlib.h
+
+tinymix: tinymix.o libtinyalsa.a
+
+tinymix.o: tinymix.c pcm.h mixer.h asoundlib.h
+
+tinypcminfo: tinypcminfo.o libtinyalsa.a
+
+tinypcminfo.o: tinypcminfo.c pcm.h mixer.h asoundlib.h
.PHONY: clean
clean:
- rm -f tinyplay tinycap
- rm -f tinymix
- rm -f tinypcminfo
+ $(RM) tinyplay tinyplay.o
+ $(RM) tinycap tinycap.o
+ $(RM) tinymix tinymix.o
+ $(RM) tinypcminfo tinypcminfo.o
.PHONY: install
install: tinyplay tinycap tinymix tinypcminfo