From 94db4383f8b5e306a3f4ee6f2c0c79f5d1c5847e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 5 Jun 2023 12:33:17 +0200 Subject: add usage and rename program to `ate` --- os2eindopdracht/makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'os2eindopdracht/makefile') 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 $@ -- cgit v1.2.3