~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 6f9bb2dfdcb1043f32f3ab4f507359050c38aed2 (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
25
26
27
# SPDX-License-Identifier: GPL-3.0-of-later
#
# Copyright (C) 2023, Ferass El Hafidi <vitali64pmemail@protonmail.com>
.POSIX:

#
# Usual compiler configuration
#
ACS_TARGET=GXL # GXL or GXBB
CC=cc
CFLAGS=-D_POSIX_C_SOURCE=200809L -DACS_TARGET_$(ACS_TARGET) -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