From f01745a2ee84f11b8cc54e37c5f7f596184ab785 Mon Sep 17 00:00:00 2001 From: turret Date: Sat, 30 Mar 2024 16:02:47 -0500 Subject: extern: add extern-only include also: in makefile add support for deeper c files --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5cc289e..58059c6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ CC = gcc CFLAGS = -std=gnu99 -O3 -g -Wall -Wextra -Wpedantic -masm=intel -CFLAGS += -Iinclude -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L +CFLAGS += -Iinclude -Iextern/include +CFLAGS += -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L CFLAGS += -Wno-unused-result LDFLAGS = -Tlinker.ld -no-pie -g -lcurl -SRC = $(wildcard *.c **/*.c) +SRC = $(wildcard *.c **/*.c **/**/*.c) OBJ = $(SRC:.c=.o) .PHONY: all clean -- cgit v1.2.3