summaryrefslogtreecommitdiffstats
path: root/inf/priprave/dn/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-11-01 17:56:29 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-11-01 17:56:29 +0100
commit43e520c0234f0f31a726a6f5a852f0bc7f1758dc (patch)
treed6b2ac7b33bd914740561ed4731493b214f9e863 /inf/priprave/dn/Makefile
parentrsa malo teksta (diff)
downloadsola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar.gz
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar.bz2
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar.lz
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar.xz
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.tar.zst
sola-gimb-3-43e520c0234f0f31a726a6f5a852f0bc7f1758dc.zip
Diffstat (limited to 'inf/priprave/dn/Makefile')
-rw-r--r--inf/priprave/dn/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/inf/priprave/dn/Makefile b/inf/priprave/dn/Makefile
new file mode 100644
index 0000000..1dd50ea
--- /dev/null
+++ b/inf/priprave/dn/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