From 06a02a3a50baf261a0f1c998bfd02269c3ed45de Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Fri, 31 Oct 2025 23:41:32 -0400 Subject: Initial commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b89409d --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +all: bin/hush + +bin/hush: build/lexer.o build/command.o src/hush.c build + gcc -Iinclude build/lexer.o build/command.o src/hush.c -ggdb -o bin/hush + + +build/lexer.o: include/lexer.h src/lexer.c build + gcc -Iinclude -c src/lexer.c -ggdb -o build/lexer.o + +build/command.o: include/lexer.h include/command.h src/command.c + gcc -Iinclude -c src/command.c -ggdb -o build/command.o + +.PHONY: build clean +build: + -mkdir build + -mkdir bin + +clean: + -rm -r build + -rm -r bin + + -- cgit v1.2.3