aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMr. Goblin <mrgoblin@mrgoblin.net>2026-09-12 20:11:14 +0300
committerMr. Goblin <mrgoblin@mrgoblin.net>2026-09-12 20:11:14 +0300
commit5aab8dccc979a25a60170bb5fe1aafdfc0f04b5c (patch)
tree423d9c00af49f70443cc0b2a297522157829f554 /src/Makefile
parentb03336f86d660531c89b05fd5389edb4c2f7e22b (diff)
Added Makefile, gitignore, edited LICENSE formatting
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)