aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2017-04-09 01:20:56 +0200
committerReiner Herrmann <reiner@reiner-h.de>2017-04-09 01:25:41 +0200
commit4b3082a34d7200d4b8ac980949bae355fc982c6b (patch)
tree3f3edd2e0dbfc217220d89d7eff5b4dc7dd9231e /Makefile
parent7af91e2bc4a51670343ba3d5852c8e6b688a5a13 (diff)
Minor cleanup and pretty printing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 1940004..f909779 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,14 @@
CFLAGS = -Wall -Wextra -Werror -ggdb3 -O3
-LDFLAGS = -lasound -lfftw3 -lm -lrt
+LDFLAGS = -lasound -lm -lrt
-METRONOME_OBJS = metronome.o
-METRONOME_BIN = metronome
-TUNER_OBJS = tuner.o
-TUNER_BIN = tuner
-
-OBJS = $(METRONOME_OBJS) $(TUNER_OBJS)
-BINS = $(METRONOME_BIN) $(TUNER_BIN)
+BINS = metronome tuner
all: $(BINS)
-$(METRONOME_BIN): $(METRONOME_OBJS)
-$(TUNER_BIN): $(TUNER_OBJS)
+metronome: metronome.o common.o
+
+tuner: LDFLAGS += -lfftw3
+tuner: tuner.o common.o
clean:
- rm -f $(OBJS) $(BINS)
+ rm -f *.o $(BINS)