aboutsummaryrefslogblamecommitdiffstats
path: root/src/Makefile
blob: 33da2cdad8624b16667a8e4122d03c0934921e56 (plain) (tree)



























                                                 
#
# 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 -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