aboutsummaryrefslogtreecommitdiffstats
path: root/src/GNUmakefile
blob: e730845d820aa1a9d365ed8c09bb679385fa183d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Copyright (c) 2020, yzrh <yzrh@noema.org>
#
# 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