Add packaging files for Tizen
[profile/ivi/yasm.git] / Makefile.am
1 SUBDIRS = po .
2
3 ACLOCAL_AMFLAGS = -I m4
4 AM_YFLAGS = -d
5 AM_CFLAGS = @MORE_CFLAGS@
6
7 bin_PROGRAMS =
8 dist_man_MANS =
9 notrans_dist_man_MANS =
10 TESTS =
11 TESTS_ENVIRONMENT =
12 noinst_PROGRAMS = genstring
13
14 check_PROGRAMS = test_hd
15
16 test_hd_SOURCES = test_hd.c
17
18 include_HEADERS = libyasm.h
19 nodist_include_HEADERS = libyasm-stdint.h
20
21 noinst_HEADERS = util.h
22
23 BUILT_SOURCES =
24 MAINTAINERCLEANFILES =
25 DISTCLEANFILES =
26 SUFFIXES =
27
28 # configure.lineno doesn't clean up after itself?
29 CLEANFILES = configure.lineno
30 EXTRA_DIST = config/config.rpath
31
32 # libyasm-stdint.h doesn't clean up after itself?
33 CONFIG_CLEAN_FILES = libyasm-stdint.h
34 CONFIG_CLEAN_FILES += YASM-VERSION-FILE
35 CONFIG_CLEAN_FILES += YASM-VERSION.h
36
37 EXTRA_DIST += tools/Makefile.inc
38 EXTRA_DIST += libyasm/Makefile.inc
39 EXTRA_DIST += modules/Makefile.inc
40 EXTRA_DIST += frontends/Makefile.inc
41
42 include tools/Makefile.inc
43
44 YASM_MODULES = 
45 lib_LIBRARIES = libyasm.a
46 libyasm_a_SOURCES =
47 nodist_libyasm_a_SOURCES =
48 include modules/Makefile.inc
49
50 include libyasm/Makefile.inc
51 include frontends/Makefile.inc
52 include m4/Makefile.inc
53
54 EXTRA_DIST += out_test.sh
55 EXTRA_DIST += Artistic.txt
56 EXTRA_DIST += BSD.txt
57 EXTRA_DIST += GNU_GPL-2.0
58 EXTRA_DIST += GNU_LGPL-2.0
59 EXTRA_DIST += splint.sh
60 EXTRA_DIST += YASM-VERSION-GEN.sh
61 EXTRA_DIST += Mkfiles/Makefile.flat
62 EXTRA_DIST += Mkfiles/Makefile.dj
63 EXTRA_DIST += Mkfiles/dj/config.h
64 EXTRA_DIST += Mkfiles/dj/libyasm-stdint.h
65 EXTRA_DIST += Mkfiles/vc9/config.h
66 EXTRA_DIST += Mkfiles/vc9/crt_secure_no_deprecate.vsprops
67 EXTRA_DIST += Mkfiles/vc9/libyasm-stdint.h
68 EXTRA_DIST += Mkfiles/vc9/readme.vc9.txt
69 EXTRA_DIST += Mkfiles/vc9/vc98_swap.py
70 EXTRA_DIST += Mkfiles/vc9/vsyasm.vcproj
71 EXTRA_DIST += Mkfiles/vc9/yasm.sln
72 EXTRA_DIST += Mkfiles/vc9/yasm.vcproj
73 EXTRA_DIST += Mkfiles/vc9/ytasm.vcproj
74 EXTRA_DIST += Mkfiles/vc9/yasm.rules
75 EXTRA_DIST += Mkfiles/vc9/genmacro/genmacro.vcproj
76 EXTRA_DIST += Mkfiles/vc9/genmacro/run.bat
77 EXTRA_DIST += Mkfiles/vc9/genmodule/genmodule.vcproj
78 EXTRA_DIST += Mkfiles/vc9/genmodule/run.bat
79 EXTRA_DIST += Mkfiles/vc9/genperf/genperf.vcproj
80 EXTRA_DIST += Mkfiles/vc9/genperf/run.bat
81 EXTRA_DIST += Mkfiles/vc9/genstring/genstring.vcproj
82 EXTRA_DIST += Mkfiles/vc9/genstring/run.bat
83 EXTRA_DIST += Mkfiles/vc9/genversion/genversion.vcproj
84 EXTRA_DIST += Mkfiles/vc9/genversion/run.bat
85 EXTRA_DIST += Mkfiles/vc9/libyasm/libyasm.vcproj
86 EXTRA_DIST += Mkfiles/vc9/modules/modules.vcproj
87 EXTRA_DIST += Mkfiles/vc9/re2c/re2c.vcproj
88 EXTRA_DIST += Mkfiles/vc9/re2c/run.bat
89 EXTRA_DIST += Mkfiles/vc10/config.h
90 EXTRA_DIST += Mkfiles/vc10/crt_secure_no_deprecate.props
91 EXTRA_DIST += Mkfiles/vc10/crt_secure_no_deprecate.vsprops
92 EXTRA_DIST += Mkfiles/vc10/libyasm-stdint.h
93 EXTRA_DIST += Mkfiles/vc10/out_copy_rename.bat
94 EXTRA_DIST += Mkfiles/vc10/readme.vc10.txt
95 EXTRA_DIST += Mkfiles/vc10/vsyasm.props
96 EXTRA_DIST += Mkfiles/vc10/vsyasm.targets
97 EXTRA_DIST += Mkfiles/vc10/vsyasm.vcxproj
98 EXTRA_DIST += Mkfiles/vc10/vsyasm.xml
99 EXTRA_DIST += Mkfiles/vc10/yasm.sln
100 EXTRA_DIST += Mkfiles/vc10/yasm.vcxproj
101 EXTRA_DIST += Mkfiles/vc10/yasm.vcxproj.filters
102 EXTRA_DIST += Mkfiles/vc10/ytasm.vcxproj
103 EXTRA_DIST += Mkfiles/vc10/genmacro/genmacro.vcxproj
104 EXTRA_DIST += Mkfiles/vc10/genmacro/genmacro.vcxproj.filters
105 EXTRA_DIST += Mkfiles/vc10/genmacro/run.bat
106 EXTRA_DIST += Mkfiles/vc10/genmodule/genmodule.vcxproj
107 EXTRA_DIST += Mkfiles/vc10/genmodule/genmodule.vcxproj.filters
108 EXTRA_DIST += Mkfiles/vc10/genmodule/run.bat
109 EXTRA_DIST += Mkfiles/vc10/genperf/genperf.vcxproj
110 EXTRA_DIST += Mkfiles/vc10/genperf/genperf.vcxproj.filters
111 EXTRA_DIST += Mkfiles/vc10/genperf/run.bat
112 EXTRA_DIST += Mkfiles/vc10/genstring/genstring.vcxproj
113 EXTRA_DIST += Mkfiles/vc10/genstring/genstring.vcxproj.filters
114 EXTRA_DIST += Mkfiles/vc10/genstring/run.bat
115 EXTRA_DIST += Mkfiles/vc10/genversion/genversion.vcxproj
116 EXTRA_DIST += Mkfiles/vc10/genversion/genversion.vcxproj.filters
117 EXTRA_DIST += Mkfiles/vc10/genversion/run.bat
118 EXTRA_DIST += Mkfiles/vc10/libyasm/libyasm.vcxproj
119 EXTRA_DIST += Mkfiles/vc10/libyasm/libyasm.vcxproj.filters
120 EXTRA_DIST += Mkfiles/vc10/modules/modules.vcxproj
121 EXTRA_DIST += Mkfiles/vc10/modules/modules.vcxproj.filters
122 EXTRA_DIST += Mkfiles/vc10/re2c/re2c.vcxproj
123 EXTRA_DIST += Mkfiles/vc10/re2c/re2c.vcxproj.filters
124 EXTRA_DIST += Mkfiles/vc10/re2c/run.bat
125
126 # Until this gets fixed in automake
127 DISTCLEANFILES += libyasm/stamp-h libyasm/stamp-h[0-9]*
128
129 dist-hook: YASM-VERSION-FILE YASM-VERSION.h
130         cp YASM-VERSION-FILE $(distdir)/version
131         cp YASM-VERSION.h $(distdir)/Mkfiles/dj/
132         cp YASM-VERSION.h $(distdir)/Mkfiles/vc9/
133         cp YASM-VERSION.h $(distdir)/Mkfiles/vc10/
134
135 YASM-VERSION-FILE: $(top_srcdir)/YASM-VERSION-GEN.sh
136         $(top_srcdir)/YASM-VERSION-GEN.sh
137
138 distclean-local:
139         -rm -rf results
140 if HAVE_PYTHON
141         -rm -rf build
142 endif
143
144 # Until gets fixed libyasm cross-build for target system
145 # use fixinstall-yasm-XXX make targets
146 all-local: python-build
147 install-exec-hook: python-install
148 uninstall-hook: python-uninstall
149
150 if BUILD_MAN
151 MAINTAINERCLEANFILES += $(dist_man_MANS) $(notrans_dist_man_MANS)
152 endif
153
154 # genstring build
155 genstring_SOURCES =
156 EXTRA_DIST += genstring.c
157 genstring_LDADD = genstring.$(OBJEXT)
158 genstring_LINK = $(CCLD_FOR_BUILD) -o $@
159
160 genstring.$(OBJEXT): genstring.c
161         $(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f genstring.c || echo '$(srcdir)/'`genstring.c
162