1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11 # Copyright (c) 2019, Joyent, Inc.
12 #
13
14 #
15 # The src/ sub-directory is un-modified copy of
16 # https://github.com/illumos/smatch/tree/0.5.1-il-5
17 #
18 # This Makefile installs just enough for us to be able to run smatch
19 # locally.
20 #
21
22 PROG = smatch
23 SPARSE_VERSION = 0.5.1-il-5
24
25 include ../Makefile.tools
26
27 # We have to build smatch before we can use cw
28 i386_CC = $(GNUC_ROOT)/bin/gcc
29 sparc_CC = $(GNUC_ROOT)/bin/gcc
30 # sparc doesn't recognise -msave-args
31 i386_SMATCHFLAGS = -msave-args
32 sparc_SMATCHFLAGS =
33
34 CFLAGS = -O -m64 $($(MACH)_SMATCHFLAGS) -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
35
36 SMATCHDATADIR = $(ROOTONBLDSHARE)/smatch
37
38 CFLAGS += -DSMATCHDATADIR='"$(SMATCHDATADIR)"'
39 CFLAGS += -DGCC_BASE='"/no/such/dir"'
40 CFLAGS += -DMULTIARCH_TRIPLET=NULL
41
42 LDLIBS += -lsqlite3 -lcrypto -lm -lgcc -lc
43 LDFLAGS = $(MAPFILE.NES:%=-Wl,-M%)
|
1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11 # Copyright 2019 Joyent, Inc.
12 #
13
14 #
15 # The src/ sub-directory is un-modified copy of
16 # https://github.com/illumos/smatch/tree/0.5.1-il-6
17 #
18 # This Makefile installs just enough for us to be able to run smatch
19 # locally.
20 #
21
22 PROG = smatch
23 SPARSE_VERSION = 0.5.1-il-6
24
25 include ../Makefile.tools
26
27 # We have to build smatch before we can use cw
28 i386_CC = $(GNUC_ROOT)/bin/gcc
29 sparc_CC = $(GNUC_ROOT)/bin/gcc
30 # sparc doesn't recognise -msave-args
31 i386_SMATCHFLAGS = -msave-args
32 sparc_SMATCHFLAGS =
33
34 CFLAGS = -O -m64 $($(MACH)_SMATCHFLAGS) -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
35
36 SMATCHDATADIR = $(ROOTONBLDSHARE)/smatch
37
38 CFLAGS += -DSMATCHDATADIR='"$(SMATCHDATADIR)"'
39 CFLAGS += -DGCC_BASE='"/no/such/dir"'
40 CFLAGS += -DMULTIARCH_TRIPLET=NULL
41
42 LDLIBS += -lsqlite3 -lcrypto -lm -lgcc -lc
43 LDFLAGS = $(MAPFILE.NES:%=-Wl,-M%)
|