aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorturret <turret@duck.com>2024-03-30 16:02:47 -0500
committerturret <turret@duck.com>2024-03-30 16:02:47 -0500
commitf01745a2ee84f11b8cc54e37c5f7f596184ab785 (patch)
tree662ad4af5a402f65addd9acde19b246f33dec3ce
parent9a3149aba0214d514b57a53af6d019ae191ecab6 (diff)
downloaddiscord-bot-skeleton-f01745a2ee84f11b8cc54e37c5f7f596184ab785.tar.gz
discord-bot-skeleton-f01745a2ee84f11b8cc54e37c5f7f596184ab785.tar.bz2
discord-bot-skeleton-f01745a2ee84f11b8cc54e37c5f7f596184ab785.zip
extern: add extern-only include
also: in makefile add support for deeper c files
-rw-r--r--Makefile5
-rw-r--r--extern/include/cJSON.h (renamed from include/cJSON.h)0
2 files changed, 3 insertions, 2 deletions
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
diff --git a/include/cJSON.h b/extern/include/cJSON.h
index 2628d76..2628d76 100644
--- a/include/cJSON.h
+++ b/extern/include/cJSON.h