• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## $Id$
2
3AUTOMAKE_OPTIONS = foreign
4
5DEFS = @DEFS@ @CONFIG_DEFS@
6
7ECHO ?= echo
8
9nasm_sources = \
10	choose_table.nas \
11	cpu_feat.nas \
12	fft3dn.nas \
13	fftsse.nas
14
15if HAVE_NASM
16noinst_LTLIBRARIES = liblameasmroutines.la
17liblameasmroutines_la_SOURCES = $(nasm_sources)
18liblameasmroutines_la_DEPENDENCIES = $(nasm_sources:.nas.lo)
19am_liblameasmroutines_la_OBJECTS = \
20	choose_table$U.lo \
21	cpu_feat$U.lo \
22	fft3dn$U.lo \
23	fftsse$U.lo
24endif
25
26noinst_HEADERS = nasm.h
27
28INCLUDES = @INCLUDES@ -I$(top_srcdir)/libmp3lame/@CPUTYPE@
29
30SUFFIXES = .nas .lo
31
32EXTRA_liblameasmroutines_la_SOURCES = $(nasm_sources)
33
34CLEANFILES = \
35	choose_table.o.lst \
36	choose_table.lo.lst \
37	cpu_feat.o.lst \
38	cpu_feat.lo.lst \
39	fft3dn.o.lst \
40	fft3dn.lo.lst \
41	fftsse.o.lst \
42	fftsse.lo.lst
43
44EXTRA_DIST = \
45	fft.nas \
46	fftfpu.nas \
47	ffttbl.nas \
48	scalar.nas
49
50NASM = @NASM@
51NASMFLAGS=@NASM_FORMAT@ -i $(top_srcdir)/libmp3lame/@CPUTYPE@/
52
53.nas.o: $< nasm.h
54	$(NASM) $(NASMFLAGS) $< -o $@ -l $@.lst
55
56.nas.lo: $< nasm.h
57	$(ECHO) '# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)' >$@
58	$(ECHO) "pic_object='$*.o'" >>$@
59	$(ECHO) "non_pic_object='$*.o'" >>$@
60	$(NASM) $(NASMFLAGS) $< -o $*.o -l $@.lst
61
62COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
63	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
64LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
65	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66CCLD = $(CC)
67LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
68	$(AM_LDFLAGS) $(LDFLAGS) -o $@
69
70
71#$(OBJECTS): libtool
72#libtool: $(LIBTOOL_DEPS)
73#	$(SHELL) $(top_builddir)/config.status --recheck
74