-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (27 loc) · 937 Bytes
/
makefile
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
# 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
LIBS=-lpthread -lpmi_simple -lsma
CFLAGS=$(LIBS)
all:
nim c --clibdir:$(LIBDIR) -d:danger -d:globalSymbols --cincludes:$(INCDIR) --passC:"$(CFLAGS)" --passL:"$(LIBS)" tests/test_initfin.nim
nim c --clibdir:$(LIBDIR) -d:danger -d:globalSymbols --cincludes:$(INCDIR) --passC:"$(CFLAGS)" --passL:"$(LIBS)" tests/test_pe.nim
nim c --clibdir:$(LIBDIR) -d:danger -d:globalSymbols --cincludes:$(INCDIR) --passC:"$(CFLAGS)" --passL:"$(LIBS)" tests/test_red.nim
mv tests/test_initfin .
mv tests/test_pe .
mv tests/test_red .
clean:
rm test_initfin
rm test_pe
rm test_red