aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9fe729c..19fe7e6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,18 @@
CFLAGS = -Wall -Wextra -Werror -ggdb3 -O3
LDFLAGS = -lasound -lm -lrt
-OBJS = metronome.o
-BIN = metronome
+METRONOME_OBJS = metronome.o
+METRONOME_BIN = metronome
+TUNER_OBJS = tuner.o
+TUNER_BIN = tuner
-$(BIN): $(OBJS)
+OBJS = $(METRONOME_OBJS) $(TUNER_OBJS)
+BINS = $(METRONOME_BIN) $(TUNER_BIN)
-all: $(BIN)
+all: $(BINS)
+
+$(METRONOME_BIN): $(METRONOME_OBJS)
+$(TUNER_BIN): $(TUNER_OBJS)
clean:
- rm -f $(OBJS) $(BIN)
+ rm -f $(OBJS) $(BINS)