diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-06-05 12:33:17 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-06-05 12:33:17 +0200 |
commit | 94db4383f8b5e306a3f4ee6f2c0c79f5d1c5847e (patch) | |
tree | d52c46a192a7444711f96c8677c873b57156b401 /os2eindopdracht/makefile | |
parent | 4ddbd609e537acbf5610651772d969ea59f99a4c (diff) |
Diffstat (limited to 'os2eindopdracht/makefile')
-rw-r--r-- | os2eindopdracht/makefile | 16 |
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 $@ |