From 7c5a577fba12606491eb0969b99f1c5553032861 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Thu, 26 Sep 2019 22:54:08 +1000 Subject: [PATCH] makefile for crappy vgm pcm scanner util --- neotools/.gitignore | 1 + neotools/adpcm.Makefile | 6 +++--- neotools/neoadpcmextract.Makefile | 12 ++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 neotools/neoadpcmextract.Makefile diff --git a/neotools/.gitignore b/neotools/.gitignore index e19e313..d68123b 100644 --- a/neotools/.gitignore +++ b/neotools/.gitignore @@ -8,3 +8,4 @@ *.o adpcm adpcmb +neoadpcmextract diff --git a/neotools/adpcm.Makefile b/neotools/adpcm.Makefile index bb97bb0..371766d 100644 --- a/neotools/adpcm.Makefile +++ b/neotools/adpcm.Makefile @@ -23,12 +23,12 @@ OBJECT := $(SOURCE:%.c=%.o) all: $(TARGET) $(TARGET): $(OBJECT) - $(LD) $(CFLAGS) $(LDFLAGS) $^ -o $@ + $(LD) $(CFLAGS) $(LDFLAGS) $^ -o $@ %.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ # Rules to manage files .PHONY: clean clean: - rm -f $(TARGET) $(OBJECT) + rm -f $(TARGET) $(OBJECT) diff --git a/neotools/neoadpcmextract.Makefile b/neotools/neoadpcmextract.Makefile new file mode 100644 index 0000000..4f9208f --- /dev/null +++ b/neotools/neoadpcmextract.Makefile @@ -0,0 +1,12 @@ +TARGET := neoadpcmextract +SOURCE := neoadpcmextract.cpp +CXXFLAGS := -O2 -pipe -Wall -Wextra + +all: $(TARGET) + +$(TARGET): $(SOURCE) + $(CXX) $(CXXFLAGS) $< -o $@ + +.PHONY: clean +clean: + rm -f $(TARGET)