From 7371d1028b20e72991cba0fd85469f8dd953ca1d Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 4 Apr 2026 21:44:15 -0400 Subject: build: Restructured project --- Makefile | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7746ba9..4bb3bef 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,9 @@ -CC = gcc-15 -CFLAGS = -std=c17 \ - -Wall \ - -Werror \ - -Wextra \ - -Wpedantic \ - -Iinclude -SRCS = src/main.c \ - src/matfile.c -PROG = main - -all: $(PROG) - -$(PROG): $(SRCS) - $(CC) $(CFLAGS) -o $@ $^ - -clean: - rm -rf $(PROG) - -.PHONY: all clean +# +# Copyright (c) 2026 Jacob McDonnell +# +# SPDX-License-Identifier: BSD-2-Clause +# +SUBDIRS = src example + +include mk/mk/mcd.subdir.mk -- cgit v1.2.3