File: Makefile.am

package info (click to toggle)
avr-libc 20020203-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,448 kB
  • ctags: 6,562
  • sloc: ansic: 7,631; asm: 4,424; sh: 2,703; makefile: 338; pascal: 289
file content (51 lines) | stat: -rw-r--r-- 1,217 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
## Process this file with automake to generate Makefile.in

noinst_LIBRARIES = lib.a

lib_a_c_sources = \
	abs.c	  \
	bsearch.c \
	errno.c	  \
	labs.c	  \
	malloc.c  \
	rand.c

lib_a_asm_sources = \
	abort.S  \
	atoi.S   \
	atol.S   \
	div.S    \
	exit.S   \
	ldiv.S   \
	setjmp.S

# this objects are all generated from ctype.S
libc_ctype_asm_objs = \
	isascii.o toascii.o isalnum.o cty_isfalse.o \
	isalpha.o isdigit.o isxdigit.o iscntrl.o    \
	isprint.o isspace.o isblank.o ispunct.o     \
	tolower.o toupper.o

lib_a_SOURCES = $(lib_a_c_sources) $(lib_a_asm_sources)

lib_a_c_objs = $(lib_a_c_sources:%.c=%.o)

lib_a_asm_objs = $(lib_a_asm_sources:%.S=%.o)

lib_a_LIBADD = $(libc_ctype_asm_objs)

# must be added to the package, but automake doesn't know them as source
# files until now
EXTRA_DIST = ctype.S abort.c atoi.c atol.c

# content of AVRLIB_CFLAGS and AVRLIB_ASFLAGS is determined by configure
# according to the multilib subdir (see acinclude.m4 in top directory)

$(libc_ctype_asm_objs): %.o: ctype.S
	$(COMPILE) $(AVRLIB_ASFLAGS) -c -DL$(basename $@) $< -o $@

$(lib_a_c_objs): %.o: %.c
	$(COMPILE) $(AVRLIB_CFLAGS) -c $< -o $@

$(lib_a_asm_objs): %.o: %.S
	$(COMPILE) $(AVRLIB_ASFLAGS) -c $< -o $@