File: Makefile.am

package info (click to toggle)
faucc 20090220-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,356 kB
  • ctags: 2,846
  • sloc: ansic: 38,010; yacc: 1,595; xml: 519; lex: 378; makefile: 120; sh: 101
file content (68 lines) | stat: -rw-r--r-- 1,288 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
#
# $Id: Makefile.am,v 1.11 2009-01-29 10:42:50 potyra 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 \
	simplify.c \
	type.c \
	arch_i386_gen.c \
	arch_i286_gen.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

.PHONY: devel mrproper