blob: 9efb16fc5290ca182665b4acc8de40b79768054c [file] [log] [blame]
ajwong@chromium.org45afe012009-10-23 19:20:20 +00001SUBDIRS = po .
2
hbono@chromium.orga1b52332011-01-13 05:35:22 +00003ACLOCAL_AMFLAGS = -I m4
ajwong@chromium.org45afe012009-10-23 19:20:20 +00004AM_YFLAGS = -d
5AM_CFLAGS = @MORE_CFLAGS@
6
7bin_PROGRAMS =
8dist_man_MANS =
hbono@chromium.orga1b52332011-01-13 05:35:22 +00009notrans_dist_man_MANS =
ajwong@chromium.org45afe012009-10-23 19:20:20 +000010TESTS =
11TESTS_ENVIRONMENT =
12noinst_PROGRAMS = genstring
13
14check_PROGRAMS = test_hd
15
16test_hd_SOURCES = test_hd.c
17
18include_HEADERS = libyasm.h
19nodist_include_HEADERS = libyasm-stdint.h
20
21noinst_HEADERS = util.h
22
23BUILT_SOURCES =
24MAINTAINERCLEANFILES =
25DISTCLEANFILES =
26SUFFIXES =
27
28# configure.lineno doesn't clean up after itself?
29CLEANFILES = configure.lineno
30EXTRA_DIST = config/config.rpath
31
32# libyasm-stdint.h doesn't clean up after itself?
33CONFIG_CLEAN_FILES = libyasm-stdint.h
hbono@chromium.orgc960eb12012-11-14 05:27:29 +000034CONFIG_CLEAN_FILES += YASM-VERSION-FILE
35CONFIG_CLEAN_FILES += YASM-VERSION.h
ajwong@chromium.org45afe012009-10-23 19:20:20 +000036
ajwong@chromium.org45afe012009-10-23 19:20:20 +000037EXTRA_DIST += tools/Makefile.inc
38EXTRA_DIST += libyasm/Makefile.inc
39EXTRA_DIST += modules/Makefile.inc
40EXTRA_DIST += frontends/Makefile.inc
41
42include tools/Makefile.inc
43
44YASM_MODULES =
45lib_LIBRARIES = libyasm.a
46libyasm_a_SOURCES =
47nodist_libyasm_a_SOURCES =
48include modules/Makefile.inc
49
50include libyasm/Makefile.inc
51include frontends/Makefile.inc
52include m4/Makefile.inc
53
54EXTRA_DIST += out_test.sh
55EXTRA_DIST += Artistic.txt
56EXTRA_DIST += BSD.txt
57EXTRA_DIST += GNU_GPL-2.0
58EXTRA_DIST += GNU_LGPL-2.0
59EXTRA_DIST += splint.sh
hbono@chromium.orgc960eb12012-11-14 05:27:29 +000060EXTRA_DIST += YASM-VERSION-GEN.sh
ajwong@chromium.org45afe012009-10-23 19:20:20 +000061EXTRA_DIST += Mkfiles/Makefile.flat
62EXTRA_DIST += Mkfiles/Makefile.dj
63EXTRA_DIST += Mkfiles/dj/config.h
64EXTRA_DIST += Mkfiles/dj/libyasm-stdint.h
hbono@chromium.orga1b52332011-01-13 05:35:22 +000065EXTRA_DIST += Mkfiles/vc9/config.h
ajwong@chromium.org45afe012009-10-23 19:20:20 +000066EXTRA_DIST += Mkfiles/vc9/crt_secure_no_deprecate.vsprops
hbono@chromium.orga1b52332011-01-13 05:35:22 +000067EXTRA_DIST += Mkfiles/vc9/libyasm-stdint.h
68EXTRA_DIST += Mkfiles/vc9/readme.vc9.txt
69EXTRA_DIST += Mkfiles/vc9/vc98_swap.py
70EXTRA_DIST += Mkfiles/vc9/vsyasm.vcproj
ajwong@chromium.org45afe012009-10-23 19:20:20 +000071EXTRA_DIST += Mkfiles/vc9/yasm.sln
72EXTRA_DIST += Mkfiles/vc9/yasm.vcproj
73EXTRA_DIST += Mkfiles/vc9/ytasm.vcproj
ajwong@chromium.org45afe012009-10-23 19:20:20 +000074EXTRA_DIST += Mkfiles/vc9/yasm.rules
ajwong@chromium.org45afe012009-10-23 19:20:20 +000075EXTRA_DIST += Mkfiles/vc9/genmacro/genmacro.vcproj
76EXTRA_DIST += Mkfiles/vc9/genmacro/run.bat
77EXTRA_DIST += Mkfiles/vc9/genmodule/genmodule.vcproj
78EXTRA_DIST += Mkfiles/vc9/genmodule/run.bat
hbono@chromium.orga1b52332011-01-13 05:35:22 +000079EXTRA_DIST += Mkfiles/vc9/genperf/genperf.vcproj
80EXTRA_DIST += Mkfiles/vc9/genperf/run.bat
ajwong@chromium.org45afe012009-10-23 19:20:20 +000081EXTRA_DIST += Mkfiles/vc9/genstring/genstring.vcproj
82EXTRA_DIST += Mkfiles/vc9/genstring/run.bat
83EXTRA_DIST += Mkfiles/vc9/genversion/genversion.vcproj
84EXTRA_DIST += Mkfiles/vc9/genversion/run.bat
85EXTRA_DIST += Mkfiles/vc9/libyasm/libyasm.vcproj
86EXTRA_DIST += Mkfiles/vc9/modules/modules.vcproj
87EXTRA_DIST += Mkfiles/vc9/re2c/re2c.vcproj
88EXTRA_DIST += Mkfiles/vc9/re2c/run.bat
hbono@chromium.orga1b52332011-01-13 05:35:22 +000089EXTRA_DIST += Mkfiles/vc10/config.h
90EXTRA_DIST += Mkfiles/vc10/crt_secure_no_deprecate.props
91EXTRA_DIST += Mkfiles/vc10/crt_secure_no_deprecate.vsprops
92EXTRA_DIST += Mkfiles/vc10/libyasm-stdint.h
hbono@chromium.orgc960eb12012-11-14 05:27:29 +000093EXTRA_DIST += Mkfiles/vc10/out_copy_rename.bat
hbono@chromium.orga1b52332011-01-13 05:35:22 +000094EXTRA_DIST += Mkfiles/vc10/readme.vc10.txt
95EXTRA_DIST += Mkfiles/vc10/vsyasm.props
96EXTRA_DIST += Mkfiles/vc10/vsyasm.targets
97EXTRA_DIST += Mkfiles/vc10/vsyasm.vcxproj
98EXTRA_DIST += Mkfiles/vc10/vsyasm.xml
99EXTRA_DIST += Mkfiles/vc10/yasm.sln
100EXTRA_DIST += Mkfiles/vc10/yasm.vcxproj
101EXTRA_DIST += Mkfiles/vc10/yasm.vcxproj.filters
102EXTRA_DIST += Mkfiles/vc10/ytasm.vcxproj
103EXTRA_DIST += Mkfiles/vc10/genmacro/genmacro.vcxproj
104EXTRA_DIST += Mkfiles/vc10/genmacro/genmacro.vcxproj.filters
105EXTRA_DIST += Mkfiles/vc10/genmacro/run.bat
106EXTRA_DIST += Mkfiles/vc10/genmodule/genmodule.vcxproj
107EXTRA_DIST += Mkfiles/vc10/genmodule/genmodule.vcxproj.filters
108EXTRA_DIST += Mkfiles/vc10/genmodule/run.bat
109EXTRA_DIST += Mkfiles/vc10/genperf/genperf.vcxproj
110EXTRA_DIST += Mkfiles/vc10/genperf/genperf.vcxproj.filters
111EXTRA_DIST += Mkfiles/vc10/genperf/run.bat
112EXTRA_DIST += Mkfiles/vc10/genstring/genstring.vcxproj
113EXTRA_DIST += Mkfiles/vc10/genstring/genstring.vcxproj.filters
114EXTRA_DIST += Mkfiles/vc10/genstring/run.bat
115EXTRA_DIST += Mkfiles/vc10/genversion/genversion.vcxproj
116EXTRA_DIST += Mkfiles/vc10/genversion/genversion.vcxproj.filters
117EXTRA_DIST += Mkfiles/vc10/genversion/run.bat
118EXTRA_DIST += Mkfiles/vc10/libyasm/libyasm.vcxproj
119EXTRA_DIST += Mkfiles/vc10/libyasm/libyasm.vcxproj.filters
120EXTRA_DIST += Mkfiles/vc10/modules/modules.vcxproj
121EXTRA_DIST += Mkfiles/vc10/modules/modules.vcxproj.filters
122EXTRA_DIST += Mkfiles/vc10/re2c/re2c.vcxproj
123EXTRA_DIST += Mkfiles/vc10/re2c/re2c.vcxproj.filters
124EXTRA_DIST += Mkfiles/vc10/re2c/run.bat
ajwong@chromium.org45afe012009-10-23 19:20:20 +0000125
126# Until this gets fixed in automake
127DISTCLEANFILES += libyasm/stamp-h libyasm/stamp-h[0-9]*
128
hbono@chromium.orgc960eb12012-11-14 05:27:29 +0000129dist-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
135YASM-VERSION-FILE: $(top_srcdir)/YASM-VERSION-GEN.sh
136 $(top_srcdir)/YASM-VERSION-GEN.sh
137
ajwong@chromium.org45afe012009-10-23 19:20:20 +0000138distclean-local:
139 -rm -rf results
140if HAVE_PYTHON
141 -rm -rf build
142endif
143
hbono@chromium.orga1b52332011-01-13 05:35:22 +0000144# Until gets fixed libyasm cross-build for target system
145# use fixinstall-yasm-XXX make targets
ajwong@chromium.org45afe012009-10-23 19:20:20 +0000146all-local: python-build
147install-exec-hook: python-install
148uninstall-hook: python-uninstall
149
150if BUILD_MAN
hbono@chromium.orga1b52332011-01-13 05:35:22 +0000151MAINTAINERCLEANFILES += $(dist_man_MANS) $(notrans_dist_man_MANS)
ajwong@chromium.org45afe012009-10-23 19:20:20 +0000152endif
153
154# genstring build
155genstring_SOURCES =
156EXTRA_DIST += genstring.c
157genstring_LDADD = genstring.$(OBJEXT)
158genstring_LINK = $(CCLD_FOR_BUILD) -o $@
159
160genstring.$(OBJEXT): genstring.c
161 $(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f genstring.c || echo '$(srcdir)/'`genstring.c
162