]> PatchyGit - patchyircd.git/commitdiff
add Makefile
authorEgor <egor@patchysicp.xyz>
Mon, 2 May 2022 10:42:28 +0000 (13:42 +0300)
committerEgor <egor@patchysicp.xyz>
Mon, 2 May 2022 10:42:28 +0000 (13:42 +0300)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..041ded6
--- /dev/null
@@ -0,0 +1 @@
+ircd
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..debe323
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+TARGET:=ircd
+SOURCES:=$(wildcard *.c NetSock/*.c)
+HEADERS:=$(wildcard *.h NetSock/*.h)
+
+.PHONY: all clean
+all: $(TARGET)
+clean:
+       $(RM) $(TARGET)
+
+$(TARGET): $(SOURCES) $(HEADERS)
+       $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCES) $(LDLIBS) -o $@