aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-10-29 11:26:44 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-10-29 11:26:44 +0300
commitc4fcc92183c55db868d0d6ae53e6009fb2e53ee5 (patch)
treead5ef50aa07465e11f779c4482e20e6071182e9c /rules.mk
parentmakefile: add libk target (diff)
downloadkernel-c4fcc92183c55db868d0d6ae53e6009fb2e53ee5.tar.xz
makefile: add i686/arch.a target
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..113794b
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,13 @@
+.SUFFIXES: .s .S .c .o
+.s.o:
+ @echo ' CC $^'
+ @$(AS) $(ASFLAGS) -c -o $@ $^
+
+.S.o:
+ @echo ' CC $^'
+ @$(CC) $(CCFLAGS) -c -o $@ $^
+
+.c.o:
+ @echo ' CC $^'
+ @$(CC) $(CCFLAGS) -c -o $@ $^
+