diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2021-11-01 17:56:29 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2021-11-01 17:56:29 +0100 |
commit | 43e520c0234f0f31a726a6f5a852f0bc7f1758dc (patch) | |
tree | d6b2ac7b33bd914740561ed4731493b214f9e863 /inf/priprave/dn/Makefile | |
parent | rsa malo teksta (diff) | |
download | sola-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/Makefile | 15 |
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 |