From 07ee0b546cbc5889888df711c57d244f0a68134f Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Tue, 1 Oct 2019 23:46:52 +1000 Subject: [PATCH] rename and build as C --- neotools/neoadpcmextract.Makefile | 6 +++--- neotools/{neoadpcmextract.cpp => neoadpcmextract.c} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename neotools/{neoadpcmextract.cpp => neoadpcmextract.c} (100%) diff --git a/neotools/neoadpcmextract.Makefile b/neotools/neoadpcmextract.Makefile index 49c673b..a73fd7b 100644 --- a/neotools/neoadpcmextract.Makefile +++ b/neotools/neoadpcmextract.Makefile @@ -1,11 +1,11 @@ TARGET := neoadpcmextract -SOURCE := neoadpcmextract.cpp -CXXFLAGS := -O2 -pipe -Wall -Wextra -pedantic +SOURCE := neoadpcmextract.c +CFLAGS := -std=c99 -O2 -pipe -Wall -Wextra -pedantic all: $(TARGET) $(TARGET): $(SOURCE) - $(CXX) $(CXXFLAGS) $< -o $@ + $(CC) $(CFLAGS) $< -o $@ .PHONY: clean clean: diff --git a/neotools/neoadpcmextract.cpp b/neotools/neoadpcmextract.c similarity index 100% rename from neotools/neoadpcmextract.cpp rename to neotools/neoadpcmextract.c