1 #### Makefile.in --- Makefile template for the M32C simulator
3 ### Copyright (C) 2005-2017 Free Software Foundation, Inc.
4 ### Contributed by Red Hat, Inc.
6 ### This file is part of the GNU simulators.
8 ### This program is free software; you can redistribute it and/or modify
9 ### it under the terms of the GNU General Public License as published by
10 ### the Free Software Foundation; either version 3 of the License, or
11 ### (at your option) any later version.
13 ### This program is distributed in the hope that it will be useful,
14 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ### GNU General Public License for more details.
18 ### You should have received a copy of the GNU General Public License
19 ### along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ## COMMON_PRE_CONFIG_FRAG
23 SIM_EXTRA_CFLAGS = -Wall -DTIMER_A
43 LIBS = $B/bfd/libbfd.a $B/libiberty/libiberty.a
45 ## COMMON_POST_CONFIG_FRAG
50 ./opc2c -l r8c.out $(srcdir)/r8c.opc > r8c.c
52 m32c.c : m32c.opc opc2c
53 ./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
55 opc2c : opc2c.o safe-fgets.o
56 $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)
59 grep '/\* [01]' $(srcdir)/r8c.opc | sort
61 opc2c.o : opc2c.c safe-fgets.h
62 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c
64 safe-fgets.o : safe-fgets.c safe-fgets.h
65 $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c