blob: 823fd42a23fadbd27b374736c8ff1eead5e56fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# SPDX-License-Identifier: GPL-3.0-of-later
#
# Copyright (C) 2023, Ferass El Hafidi <vitali64pmemail@protonmail.com>
.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
|