diff options
author | yzrh <yzrh@tuta.io> | 2020-08-14 22:04:26 +0000 |
---|---|---|
committer | yzrh <yzrh@tuta.io> | 2020-08-14 22:04:26 +0000 |
commit | 12ecdd71592eccf7bdb6214edbc7318246469c1c (patch) | |
tree | fda27e41c37a2345702ad3e90480154d975e426f /src/GNUmakefile | |
download | melon-12ecdd71592eccf7bdb6214edbc7318246469c1c.tar.gz melon-12ecdd71592eccf7bdb6214edbc7318246469c1c.tar.zst |
Initial commit.
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r-- | src/GNUmakefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile new file mode 100644 index 0000000..118501a --- /dev/null +++ b/src/GNUmakefile @@ -0,0 +1,28 @@ +# +# Copyright (c) 2020, yzrh <yzrh@tuta.io> +# +# SPDX-License-Identifier: Apache-2.0 +# + +src != ls *.c +obj = ${src:.c=.o} + +PREFIX = /usr/local + +CFLAGS = -O3 -march=native -pipe -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 |