-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (23 loc) · 689 Bytes
/
makefile
File metadata and controls
28 lines (23 loc) · 689 Bytes
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) 2022 Christopher Taylor
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. *(See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
LIBDIR=
INCDIR=
ifeq ($(LIBDIR),)
$(error LIBDIR is not set)
endif
ifeq ($(INCDIR),)
$(error INCDIR is not set)
endif
CFLAGS=-std=c++17
all:
nim cpp --clibdir:$(LIBDIR) -d:danger -d:globalSymbols --cincludes:$(INCDIR) --passC:"$(CFLAGS)" tests/test.nim
mv tests/test .
nim cpp --clibdir:$(LIBDIR) -d:danger -d:globalSymbols --cincludes:$(INCDIR) --passC:"$(CFLAGS)" tests/testtable.nim
mv tests/testtable .
clean:
rm test
rm testtable