From 12ecdd71592eccf7bdb6214edbc7318246469c1c Mon Sep 17 00:00:00 2001 From: yzrh Date: Fri, 14 Aug 2020 22:04:26 +0000 Subject: Initial commit. --- src/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..33da2cd --- /dev/null +++ b/src/Makefile @@ -0,0 +1,28 @@ +# +# Copyright (c) 2020, yzrh +# +# SPDX-License-Identifier: Apache-2.0 +# + +src != ls *.c +obj = ${src:.c=.o} + +PREFIX = /usr/local + +CFLAGS = -O3 -march=native -pipe -flto=thin -Wall +LDFLAGS = -Wl,-O3 -lcrypto -Wl,--as-needed + +all: ${obj} + ${CC} ${LDFLAGS} -o melon $> + +clean: + rm -f melon ${obj} + +install: + install -d ${PREFIX}/bin + install melon ${PREFIX}/bin/ + +deinstall: + rm -f ${PREFIX}/bin/melon + +.PHONY: all clean install deinstall -- cgit v1.2.3