blob: 886dedda65ded143fbe14db97f369073ecc6a3ee (
plain)
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
29
30
31
32
|
# rg version
VERSION = 1.0
# Customize below to fit your system
# Install: make install
# Windows: %USERPROFILE%\.local\bin
# Linux: /usr/local/bin
# Override: make PREFIX=... install
LIBS =
ifeq ($(OS),Windows_NT)
CC = clang
EXE = .exe
PREFIX ?= $(USERPROFILE)/.local
RM = cmd /c del /q
else
CC = cc
EXE =
PREFIX ?= /usr/local
RM = rm -f
endif
BINDIR ?= $(PREFIX)/bin
MANPREFIX ?= $(PREFIX)/share/man
# Windows (MinGW-w64): set CC = gcc instead of clang
# Windows (clang targeting MSVC CRT): default when OS=Windows_NT
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
LDFLAGS = ${LIBS}
|