From 4013507f589770940d6912c5d4146e1543f42c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Thu, 30 Mar 2017 22:01:00 +0200 Subject: [PATCH] =?UTF-8?q?make:=20Verallgemeinerung=20f=C3=BCr=20Rust,=20?= =?UTF-8?q?Trennung=20der=20Formate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Damit nebeneinander die Programme der verschiedenen Implementationen existieren können, müssen sich die Namen unterscheiden. --- 2017-03-28/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/2017-03-28/Makefile b/2017-03-28/Makefile index db17310..c8afa26 100644 --- a/2017-03-28/Makefile +++ b/2017-03-28/Makefile @@ -6,11 +6,14 @@ CFLAGS=-g -O2 -fPIC -fPIE -Wall -Wextra -Wformat=2 -Wunused -Wlogical-op -Wundef LDFLAGS=-lm +RFLAGS=-O -g + .PHONY: all -all: jo-so_euler87 jo-so_euler87_rust +all: jo-so_euler87-c jo-so_euler87-rust -jo-so_euler87: +%-rust: %.rs + rustc $(RFLAGS) --crate-type bin -o $@ $^ -jo-so_euler87_rust: jo-so_euler87.rs - rustc -O -g -o $@ $< +%-c: %.c + $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@