summaryrefslogtreecommitdiffstats
path: root/inf/rtk/šolsko/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-02-02 22:39:19 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-02-02 22:39:19 +0100
commit3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5 (patch)
tree3e7821a6bfca04de0ecf851a41ae00e3b7caa648 /inf/rtk/šolsko/Makefile
parentdnmat (diff)
downloadsola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar.gz
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar.bz2
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar.lz
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar.xz
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.tar.zst
sola-gimb-3-3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5.zip
Diffstat (limited to '')
-rw-r--r--inf/rtk/šolsko/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/inf/rtk/šolsko/Makefile b/inf/rtk/šolsko/Makefile
new file mode 100644
index 0000000..1dd50ea
--- /dev/null
+++ b/inf/rtk/šolsko/Makefile
@@ -0,0 +1,15 @@
+CFLAGS += -Wextra -Wall -pedantic -g -O0 -finput-charset=UTF-8 -fanalyzer -fextended-identifiers
+LDFLAGS += -lm
+CC ?= cc
+SHELL ?= /bin/sh
+cbins := $(subst .c,,$(wildcard *.c))
+asmbins := $(subst .asm,,$(wildcard *.asm))
+default: $(cbins) $(asmbins)
+%: %.c
+ $(CC) $(CFLAGS) $< -o$@ $(LDFLAGS)
+%: %.asm
+ # za zdaj sicer še ni ničesar v zbornem jeziku, mogoče pa bo ...
+ nasm -f elf $< && ld -m elf_i386 -s -o $@ $@.o
+.PHONY: clean
+clean:
+ rm -f $(bins) $(asmbins) *.o