From 3c3c3a6b1ab5a98ef4f400d5aa615ddabf3b94c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 2 Feb 2022 22:39:19 +0100 Subject: =?UTF-8?q?fizika=20vaja=202=20in=20=C5=A1e=20kaj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "inf/rtk/\305\241olsko/Makefile" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "inf/rtk/\305\241olsko/Makefile" (limited to 'inf/rtk/šolsko/Makefile') diff --git "a/inf/rtk/\305\241olsko/Makefile" "b/inf/rtk/\305\241olsko/Makefile" new file mode 100644 index 0000000..1dd50ea --- /dev/null +++ "b/inf/rtk/\305\241olsko/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 -- cgit v1.2.3