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-1
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-1
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
31 CFLAGS = -O -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
32
33 SMATCHDATADIR = $(ROOTONBLDSHARE)/smatch
34
35 CFLAGS += -DSMATCHDATADIR='"$(SMATCHDATADIR)"'
36 CFLAGS += -DGCC_BASE='"/no/such/dir"'
37 CFLAGS += -DMULTIARCH_TRIPLET=NULL
38
39 LDLIBS += -lsqlite3 -lcrypto -lm -lgcc -lc
40 LDFLAGS = $(MAPFILE.NES:%=-Wl,-M%)
41 LDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib
42
43 CPPFLAGS += -nostdinc
|
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-3
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-3
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
31 CFLAGS = -O -D__sun -Wall -Wno-unknown-pragmas -std=gnu99 -nodefaultlibs
32
33 SMATCHDATADIR = $(ROOTONBLDSHARE)/smatch
34
35 CFLAGS += -DSMATCHDATADIR='"$(SMATCHDATADIR)"'
36 CFLAGS += -DGCC_BASE='"/no/such/dir"'
37 CFLAGS += -DMULTIARCH_TRIPLET=NULL
38
39 LDLIBS += -lsqlite3 -lcrypto -lm -lgcc -lc
40 LDFLAGS = $(MAPFILE.NES:%=-Wl,-M%)
41 LDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib
42
43 CPPFLAGS += -nostdinc
|