# SPDX-License-Identifier: GPL-3.0-of-later # # Copyright (C) 2023, Ferass El Hafidi .POSIX: # Configuration CC=cc CFLAGS=-D_POSIX_C_SOURCE=200809L -I. -Wall -Wextra -Werror -g -pedantic -std=c99 NOLINKER=-c SRC=\ util\ parse\ acsbaby # Targets all: clean compile compile: for src in $(SRC); do \ $(CC) $(CFLAGS) $(NOLINKER) $${src}.c -o $${src}.o; done $(CC) $(CFLAGS) $(SRC:=.o) -o acsbaby clean: rm -Rf acsbaby *.o