File: Makefile.am

package info (click to toggle)
faucc 20120707-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,424 kB
  • ctags: 2,909
  • sloc: ansic: 38,774; yacc: 1,600; xml: 519; lex: 378; sh: 178; makefile: 127
file content (75 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# $Id: Makefile.am,v 1.16 2012-02-23 15:45:12 vrsieh Exp $
#
# Copyright (C) 2008-2009 FAUcc Team.
# This program is free software, GPL-2 (or any later version). See COPYING.
#

SUBDIRS = \
	. \
	libfaucc \
	docs/man

fauccdir = $(libdir)/faucc

bin_PROGRAMS = faucc
faucc_PROGRAMS = cc1

faucc_SOURCES = faucc.c
cc1_SOURCES = parse.y \
	scan.l \
	identifier.c \
	label.c \
	constraint.c \
	declaration.c \
	stmt.c \
	expr.c \
	scope.c \
	print.c \
	visitor.c \
	simplify.c \
	type.c \
	arch_i386_gen.c \
	arch_i286_gen.c \
	regalloc.c \
	cc1.c

# Make sure that parse.[ch] will get built before anything else gets compiled.
BUILT_SOURCES = config.h parse.c parse.h
CLEANFILES = \
	$(BUILT_SOURCES) \
	scan.c

# remove config.h on make distclean
DISTCLEANFILES = config.h

config.h: Makefile.am
	echo '#define FAUCCDIR "'$(fauccdir)'"' > config.h

parse.c: parse.y
	bison -d parse.y
	mv parse.tab.c parse.c
	mv parse.tab.h parse.h

parse.h: parse.c

devel: $(top_srcdir)/scripts/install_ln.sh
	$(MAKE) install INSTALL=$(CURDIR)/$(top_srcdir)/scripts/install_ln.sh

mrproper: distclean
	find . -name Makefile.in -delete
	$(RM) -r autom4te.cache/
	$(RM) scripts/depcomp
	$(RM) scripts/install-sh
	$(RM) scripts/missing
	$(RM) scripts/ylwrap
	$(RM) aclocal.m4
	$(RM) configure
	$(RM) INSTALL

# run cppcheck
cppcheck:
	$(CPPCHECK) -j 4 -q --enable=style $(top_srcdir)


.PHONY: devel mrproper cppcheck