aboutsummaryrefslogtreecommitdiff
path: root/utils/Makefile
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 16:43:17 -0500
committerTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 16:43:17 -0500
commit1c13f7cbe1ebee24c2b62d5ba16f2702882da49a (patch)
treeb60030720135abc23e50a21ddc5d1937be3db15d /utils/Makefile
parent1f741564893017c47d761dd38a331cba9aacf987 (diff)
Fixed make build using clang
Diffstat (limited to 'utils/Makefile')
-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