sw-battle-test-c

Interesting test task in C instead of C++
git clone git://bsandro.tech/sw-battle-test-c
Log | Files | Refs | README

commit ec938771d719ce1249c4bd76ae740f0b13146c70
parent cc86bb6aa79172f8e4470efda350d9f3e0ce398a
Author: bsandro <email@bsandro.tech>
Date:   Wed, 26 Aug 2026 20:42:22 +0300

makefile now scans for all *.c and *.h files recursively, not just 2 levels deep

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,10 +1,10 @@ NAME=$(shell basename ${PWD}) SDL_CFLAGS=$(shell pkg-config --cflags sdl2 SDL2_image) SDL_LDFLAGS=$(shell pkg-config --libs sdl2 SDL2_image) -SRC:=$(wildcard *.c */*.c */*/*.c) -DEPS:=$(wildcard *.h */*.h */*/*.h) +SRC:=$(shell find . -type f -iname '*.c') +DEPS:=$(shell find . -type f -iname '*.h') OBJ:=$(SRC:.c=.o) -CFLAGS=-std=c99 -Wpedantic -Wall -Wextra -ffast-math -I. $(SDL_CFLAGS) +CFLAGS=-std=c99 -Wpedantic -Wall -Wextra -Wno-unused -ffast-math -I. $(SDL_CFLAGS) ifeq (${DEBUG},1) CFLAGS+=-O0 -g else