summaryrefslogtreecommitdiffstats
path: root/inf/liga/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-12-14 21:44:53 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-12-14 21:44:53 +0100
commitbcc38555ea8da30afd8d0e8314e2ef8d02004a1e (patch)
tree87d35b3fbb1760eb575bd1d770ee6b66e5aa2347 /inf/liga/Makefile
parentdrugi test geografije (diff)
downloadsola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar.gz
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar.bz2
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar.lz
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar.xz
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.tar.zst
sola-gimb-3-bcc38555ea8da30afd8d0e8314e2ef8d02004a1e.zip
Diffstat (limited to 'inf/liga/Makefile')
-rw-r--r--inf/liga/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/inf/liga/Makefile b/inf/liga/Makefile
new file mode 100644
index 0000000..1dd50ea
--- /dev/null
+++ b/inf/liga/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