aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..d05ed6d
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,28 @@
+# Copyright (c) 2026, Mr. Goblin
+#
+# SPDX-License-Identifier: BSD-2-Clause
+
+# CC = cc -fno-caret-diagnostics -fno-color-diagnostics
+CC = gcc -fno-diagnostics-show-caret -fdiagnostics-color=never
+# CC = gcc
+CFLAGS = -g -Wall -Wextra -pedantic -std=c99
+STATIC = -static
+# STATIC =
+
+MAINBINARIES = btasktd
+
+all: $(MAINBINARIES)
+
+clean:
+ rm -f $(MAINBINARIES) *.o
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+
+BTASKTD_OBJECTS = btasktd.o
+BTASKTD_LIBS = -lc
+
+btasktd: $(BTASKTD_OBJECTS)
+ $(CC) $(CFLAGS) $(STATIC) $(BTASKTD_OBJECTS) -o $@ \
+ $(BTASKTD_LIBS)