]> PatchyGit - patchyircd.git/commitdiff
move sources to src/
authorEgor <egor@patchysicp.xyz>
Thu, 19 Oct 2023 11:21:55 +0000 (14:21 +0300)
committerEgor <egor@patchysicp.xyz>
Thu, 19 Oct 2023 11:21:55 +0000 (14:21 +0300)
19 files changed:
Makefile
src/common.h [moved from common.h with 100% similarity]
src/config.h [moved from config.h with 100% similarity]
src/irc.c [moved from irc.c with 100% similarity]
src/irc.h [moved from irc.h with 100% similarity]
src/ircfmt.c [moved from ircfmt.c with 100% similarity]
src/ircfmt.h [moved from ircfmt.h with 100% similarity]
src/main.c [moved from main.c with 100% similarity]
src/net.c [moved from net.c with 100% similarity]
src/net.h [moved from net.h with 100% similarity]
src/netsock.c [moved from netsock.c with 100% similarity]
src/netsock.h [moved from netsock.h with 100% similarity]
src/passwd.c [moved from passwd.c with 100% similarity]
src/passwd.h [moved from passwd.h with 100% similarity]
src/setpass.c [moved from tools/setpass.c with 89% similarity]
src/trie.c [moved from trie.c with 100% similarity]
src/trie.h [moved from trie.h with 100% similarity]
src/util.c [moved from util.c with 100% similarity]
src/util.h [moved from util.h with 100% similarity]

index 7e42d53..3cc9251 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,34 @@
 TARGET := ircd
 SOURCES := \
-       main.c    \
-       irc.c     \
-       ircfmt.c  \
-       net.c     \
-       netsock.c \
-       passwd.c  \
-       trie.c    \
-       util.c
+       src/main.c    \
+       src/irc.c     \
+       src/ircfmt.c  \
+       src/net.c     \
+       src/netsock.c \
+       src/passwd.c  \
+       src/trie.c    \
+       src/util.c
 HEADERS := \
-       common.h  \
-       config.h  \
-       irc.h     \
-       ircfmt.h  \
-       net.h     \
-       netsock.h \
-       passwd.h  \
-       trie.h    \
-       util.h
+       src/common.h  \
+       src/config.h  \
+       src/irc.h     \
+       src/ircfmt.h  \
+       src/net.h     \
+       src/netsock.h \
+       src/passwd.h  \
+       src/trie.h    \
+       src/util.h
+
 -include config.mk
 
 .PHONY: all clean
 all: $(TARGET) $(if $(CC.w32),$(TARGET).exe,) setpass
 clean:
-       $(RM) $(TARGET) $(TARGET).exe
+       $(RM) $(TARGET) $(TARGET).exe setpass
 
 $(TARGET): $(SOURCES) $(HEADERS)
        $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCES) $(LDLIBS) -o $@
 $(TARGET).exe: $(SOURCES) $(HEADERS)
        $(CC.w32) $(CFLAGS.w32) $(LDFLAGS.w32) $(SOURCES) $(LDLIBS.w32) -o $@
-setpass: tools/setpass.c passwd.c passwd.h
-       $(CC) $(CFLAGS) $(LDFLAGS) tools/setpass.c passwd.c $(LDLIBS) -o $@
+setpass: src/setpass.c src/passwd.c src/passwd.h
+       $(CC) $(CFLAGS) $(LDFLAGS) src/setpass.c src/passwd.c $(LDLIBS) -o $@
similarity index 100%
rename from common.h
rename to src/common.h
similarity index 100%
rename from config.h
rename to src/config.h
diff --git a/irc.c b/src/irc.c
similarity index 100%
rename from irc.c
rename to src/irc.c
diff --git a/irc.h b/src/irc.h
similarity index 100%
rename from irc.h
rename to src/irc.h
similarity index 100%
rename from ircfmt.c
rename to src/ircfmt.c
similarity index 100%
rename from ircfmt.h
rename to src/ircfmt.h
similarity index 100%
rename from main.c
rename to src/main.c
diff --git a/net.c b/src/net.c
similarity index 100%
rename from net.c
rename to src/net.c
diff --git a/net.h b/src/net.h
similarity index 100%
rename from net.h
rename to src/net.h
similarity index 100%
rename from netsock.c
rename to src/netsock.c
similarity index 100%
rename from netsock.h
rename to src/netsock.h
similarity index 100%
rename from passwd.c
rename to src/passwd.c
similarity index 100%
rename from passwd.h
rename to src/passwd.h
similarity index 89%
rename from tools/setpass.c
rename to src/setpass.c
index c3c6dd8..afebf4f 100644 (file)
@@ -1,5 +1,5 @@
 #include <unistd.h>
-#include "../passwd.h"
+#include "passwd.h"
 int main(int argc, char **argv)
 {
        if (argc < 3)
similarity index 100%
rename from trie.c
rename to src/trie.c
similarity index 100%
rename from trie.h
rename to src/trie.h
similarity index 100%
rename from util.c
rename to src/util.c
similarity index 100%
rename from util.h
rename to src/util.h