16 lines
396 B
Makefile
16 lines
396 B
Makefile
#!/usr/bin/make -f
|
|
|
|
CFLAGS=-g -O2 -fPIC -fPIE -Wall -Wextra -Wformat=2 -Wunused -Wlogical-op -Wundef \
|
|
-Wswitch-enum -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings \
|
|
-Wconversion -D_FORTIFY_SOURCE=2 -fstack-protector -Wshadow -Wnested-externs
|
|
|
|
LDFLAGS=-lm
|
|
|
|
.PHONY: all
|
|
|
|
all: jo-so_euler87 jo-so_euler87_rust
|
|
|
|
jo-so_euler87:
|
|
|
|
jo-so_euler87_rust: jo-so_euler87.rs
|
|
rustc -O -g -o $@ $<
|