summaryrefslogtreecommitdiff
path: root/sim/bpf/Makefile.in
blob: 64ec667c12c723928cf06f029bc2206137855397 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile template for configure for the eBPF simulator
# Copyright (C) 2020-2023 Free Software Foundation, Inc.
#
# This file is part of GDB, the GNU debugger.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

## COMMON_PRE_CONFIG_FRAG

SIM_EXTRA_CFLAGS = -DWITH_TARGET_WORD_BITSIZE=64

## COMMON_POST_CONFIG_FRAG

# Dependencies for binaries from CGEN generated source

mloop-le.o: mloop-le.c
	$(COMPILE) -DWANT_ISA_EBPFLE mloop-le.c
	$(POSTCOMPILE)
mloop-be.o: mloop-be.c
	$(COMPILE) -DWANT_ISA_EBPFBE mloop-be.c
	$(POSTCOMPILE)

decode-le.o: decode-le.c
	$(COMPILE) -DWANT_ISA_EBPFLE $(srcdir)/decode-le.c
	$(POSTCOMPILE)
decode-be.o: decode-be.c
	$(COMPILE) -DWANT_ISA_EBPFBE $(srcdir)/decode-be.c
	$(POSTCOMPILE)

sem-le.o: sem-le.c
	$(COMPILE) -DWANT_ISA_EBPFLE $(srcdir)/sem-le.c
	$(POSTCOMPILE)
sem-be.o: sem-be.c
	$(COMPILE) -DWANT_ISA_EBPFBE $(srcdir)/sem-be.c
	$(POSTCOMPILE)

arch = bpf