summaryrefslogtreecommitdiffstats
path: root/inf/priprave/dn/Makefile
diff options
context:
space:
mode:
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