diff options
author | turret <turret@duck.com> | 2024-03-30 16:02:47 -0500 |
---|---|---|
committer | turret <turret@duck.com> | 2024-03-30 16:02:47 -0500 |
commit | f01745a2ee84f11b8cc54e37c5f7f596184ab785 (patch) | |
tree | 662ad4af5a402f65addd9acde19b246f33dec3ce /Makefile | |
parent | 9a3149aba0214d514b57a53af6d019ae191ecab6 (diff) | |
download | discord-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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |