about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-18 23:03:45 +0300
committerNakidai <nakidai@disroot.org>2026-02-18 23:03:45 +0300
commitcf618cc741269fa1917840345bb3fae133007b6d (patch)
treefdbe89bd8a144ad9d835fe8591d38e10e205ffce /Makefile
parent9a2b8cb4fde1adea8027387f277510cfa4406a20 (diff)
downloadngircd-cf618cc741269fa1917840345bb3fae133007b6d.tar.gz
ngircd-cf618cc741269fa1917840345bb3fae133007b6d.zip
Improve the build system
Now one global makefile is generated using includes, so dependencies
are handled properly
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9f78a580..2ede9526 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 .PHONY: all clean
 
-all:
-	make -C src
-clean:
-	make -C src clean
+all: src/ngircd/ngircd
+
+.c.o:
+	# ${CC} ${CFLAGS} ${CPPFLAGS} -c -o "`echo $< | sed 's/.$$//'`o" $<
+	${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
+
+include src/Makefile