aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVictor Mignot <victor@vmignot.fr>2026-02-18 08:16:09 +0100
committerVictor Mignot <victor@vmignot.fr>2026-03-04 17:25:12 +0100
commit82938d522273eefd51b136f037810fa6b963a096 (patch)
tree2204b4f5c50ac63326bf8b8ec48fdf490e98838a /Makefile
downloadfutiles-82938d522273eefd51b136f037810fa6b963a096.tar.gz
Implement `true` and `false`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..295b721
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC := gcc
+CFLAGS := -std=c99 -Wpedantic -Wall -Wextra
+LDFLAGS :=
+
+BIN := futiles
+OBJS := $(patsubst %.c, %.o, $(wildcard src/*.c))
+
+all: $(BIN)
+
+$(BIN): $(OBJS)
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^
+
+src/%.o: src/%.c
+ $(CC) -c -o $@ $(CFLAGS) $<
+
+clean:
+ rm -f $(BIN) $(OBJS)
+
+.PHONY: clean