summaryrefslogtreecommitdiff
path: root/os2eindopdracht/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'os2eindopdracht/makefile')
-rw-r--r--os2eindopdracht/makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/os2eindopdracht/makefile b/os2eindopdracht/makefile
index eb86336..87185b4 100644
--- a/os2eindopdracht/makefile
+++ b/os2eindopdracht/makefile
@@ -3,16 +3,22 @@ LD = g++
RM = rm -f
CFLAGS = -std=c++20
LFLAGS =
-TARGET = main
+TARGET = ate
SRCS := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp,%.o, $(SRCS))
+OBJS += usage.o
all: $(TARGET)
%.o: %.cpp
$(C++) -c $(CFLAGS) $< -o $@
+%.o: %.txt
+ objcopy --input binary --output elf64-x86-64 $< $@
+
+Arguments.o: usage.h
+
$(TARGET): $(OBJS)
$(LD) $^ $(LFLAGS) -o $@
@@ -25,13 +31,17 @@ compile_commands:
original.pcm: original.flac
./any2s16lepcm $< $@
-edit.pcm: original.pcm ./main
- ./main $< $@ -b-4 -t-18
+edit.pcm: original.pcm $(TARGET)
+ ./$(TARGET) $< $@ -b-4 -t-18
edit.wav: edit.pcm
./s16lepcm2any $< $@
+original.wav: original.pcm
+ ./s16lepcm2any $< $@
+
edit.png: edit.wav
+original.png: original.wav
%.png: %.wav
sox $< -n spectrogram -o $@