head	1.45;
access;
symbols
	RELENG_1:1.25
	release_1:1.14
	alpha1:1.9
	start:1.1.1.1
	vendor:1.1.1;
locks; strict;
comment	@# @;


1.45
date	2006.04.23.16.37.22;	author coppice;	state Exp;
branches;
next	1.44;

1.44
date	2005.08.24.12.21.16;	author coppice;	state Exp;
branches;
next	1.43;

1.43
date	2005.03.17.14.18.12;	author coppice;	state Exp;
branches;
next	1.42;

1.42
date	2004.08.23.20.20.54;	author ctakahashi;	state Exp;
branches;
next	1.41;

1.41
date	2004.07.08.19.01.14;	author coppice;	state Exp;
branches;
next	1.40;

1.40
date	2004.07.02.19.09.31;	author ctakahashi;	state Exp;
branches;
next	1.39;

1.39
date	2004.04.08.20.21.26;	author cliechti;	state Exp;
branches;
next	1.38;

1.38
date	2004.03.02.13.19.39;	author coppice;	state Exp;
branches;
next	1.37;

1.37
date	2004.02.24.23.54.19;	author coppice;	state Exp;
branches;
next	1.36;

1.36
date	2003.10.10.02.47.31;	author cliechti;	state Exp;
branches;
next	1.35;

1.35
date	2003.09.29.22.27.16;	author cliechti;	state Exp;
branches;
next	1.34;

1.34
date	2003.09.26.01.44.22;	author cliechti;	state Exp;
branches;
next	1.33;

1.33
date	2003.08.28.14.45.49;	author coppice;	state Exp;
branches;
next	1.32;

1.32
date	2003.08.12.14.00.12;	author coppice;	state Exp;
branches;
next	1.31;

1.31
date	2003.08.12.13.58.42;	author coppice;	state Exp;
branches;
next	1.30;

1.30
date	2003.06.13.14.40.15;	author coppice;	state Exp;
branches;
next	1.29;

1.29
date	2003.01.28.12.24.40;	author diwil;	state Exp;
branches;
next	1.28;

1.28
date	2003.01.15.12.59.47;	author diwil;	state Exp;
branches;
next	1.27;

1.27
date	2003.01.07.11.37.23;	author diwil;	state Exp;
branches;
next	1.26;

1.26
date	2002.12.30.13.25.01;	author diwil;	state Exp;
branches;
next	1.25;

1.25
date	2002.11.22.13.23.56;	author diwil;	state Exp;
branches;
next	1.24;

1.24
date	2002.10.28.08.33.40;	author diwil;	state Exp;
branches;
next	1.23;

1.23
date	2002.10.24.12.12.54;	author diwil;	state Exp;
branches;
next	1.22;

1.22
date	2002.10.02.17.38.36;	author diwil;	state Exp;
branches;
next	1.21;

1.21
date	2002.09.16.07.26.03;	author diwil;	state Exp;
branches;
next	1.20;

1.20
date	2002.08.30.11.53.44;	author diwil;	state Exp;
branches;
next	1.19;

1.19
date	2002.08.29.15.35.17;	author diwil;	state Exp;
branches;
next	1.18;

1.18
date	2002.08.29.15.32.41;	author diwil;	state Exp;
branches;
next	1.17;

1.17
date	2002.07.09.07.43.03;	author diwil;	state Exp;
branches;
next	1.16;

1.16
date	2002.05.23.08.09.10;	author diwil;	state Exp;
branches;
next	1.15;

1.15
date	2002.05.07.12.30.05;	author diwil;	state Exp;
branches;
next	1.14;

1.14
date	2002.04.12.09.03.58;	author diwil;	state Exp;
branches;
next	1.13;

1.13
date	2002.03.29.13.31.08;	author diwil;	state Exp;
branches;
next	1.12;

1.12
date	2002.03.26.14.19.19;	author diwil;	state Exp;
branches;
next	1.11;

1.11
date	2002.03.20.08.35.01;	author diwil;	state Exp;
branches;
next	1.10;

1.10
date	2002.03.17.21.57.01;	author diwil;	state Exp;
branches;
next	1.9;

1.9
date	2002.01.19.17.18.23;	author diwil;	state Exp;
branches;
next	1.8;

1.8
date	2002.01.16.15.09.21;	author diwil;	state Exp;
branches;
next	1.7;

1.7
date	2002.01.16.14.04.09;	author diwil;	state Exp;
branches;
next	1.6;

1.6
date	2002.01.15.14.51.27;	author diwil;	state Exp;
branches;
next	1.5;

1.5
date	2002.01.11.11.06.39;	author diwil;	state Exp;
branches;
next	1.4;

1.4
date	2002.01.03.15.22.35;	author diwil;	state Exp;
branches;
next	1.3;

1.3
date	2001.12.28.14.53.10;	author diwil;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.26.14.07.13;	author diwil;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.26.03.52.24;	author cliechti;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.12.26.03.52.24;	author cliechti;	state Exp;
branches;
next	;


desc
@@


1.45
log
@A few header fixes for the F461x. Added new devices to the make file
@
text
@#
# MSP430 libc
#
# $Id: Makefile,v 1.44 2005/08/24 12:21:16 coppice Exp $
#
VERSION = 20050812

# installation prefix (set this if you don't install by hand)

#prefix = /usr
prefix = /usr/local/msp430

# name of target architecture (used for conform naming)

target = msp430

prefix_target = ${prefix}/${target}
bindir = ${prefix_target}/bin
includedir = ${prefix_target}/include
libdir = ${prefix_target}/lib

srcdir = .

CC = ${target}-gcc
AS = ${target}-gcc -x assembler-with-cpp
AR = ${target}-ar
RM = rm
MD = mkdir -p $@@
INSTALL = install -c -m644 $^/

ASFLAGS = -Wa,-gstabs -D_GNU_ASSEMBLER_
CFLAGS = -Wall -O2 -g

# make sure we can find our header files (not the installed ones)

ALL_ASFLAGS += -I$(srcdir)/../include -I$(srcdir) ${ASFLAGS}
ALL_CFLAGS += -I$(srcdir)/../include -I$(srcdir) ${CFLAGS}

opt_speed_cflags = -O2

# further declaration... 
ifdef gnu
 source_dirs = gnu
else
 source_dirs = bsd
endif

source_dirs = 

VPATH = $(addprefix $(srcdir)/, $(source_dirs))

all: build-crt build-libc build-libm

install: install-crt install-libc install-headers install-libm

clean: clean-crt clean-libc clean-libm


crt_all_objs = \
	crt430x110.o   crt430x112.o \
	crt430x1101.o  crt430x1111.o  crt430x1121.o \
	crt430x1122.o  crt430x1132.o \
	crt430x122.o   crt430x123.o \
	crt430x1222.o  crt430x1232.o \
	crt430x133.o   crt430x135.o \
	crt430x1331.o  crt430x1351.o \
	crt430x147.o   crt430x148.o   crt430x149.o \
	crt430x1471.o  crt430x1481.o  crt430x1491.o \
	crt430x155.o   crt430x156.o   crt430x157.o \
	crt430x167.o   crt430x168.o   crt430x169.o   crt430x1610.o  crt430x1611.o  crt430x1612.o \
	crt430x2001.o  crt430x2011.o \
	crt430x2002.o  crt430x2012.o \
	crt430x2003.o  crt430x2013.o \
	crt430x2101.o  crt430x2111.o  crt430x2121.o  crt430x2131.o \
	crt430x2234.o  crt430x2254.o  crt430x2274.o \
	crt430x311.o   crt430x312.o   crt430x313.o   crt430x314.o   crt430x315.o \
	crt430x323.o   crt430x325.o   crt430x336.o   crt430x337.o \
	crt430x412.o   crt430x413.o   crt430x415.o   crt430x417.o \
	crt430x423.o   crt430x425.o   crt430x427.o \
	crt430x4250.o  crt430x4260.o  crt430x4270.o \
	crt430xE423.o  crt430xE425.o  crt430xE427.o \
	crt430xW423.o  crt430xW425.o  crt430xW427.o \
	crt430xG437.o  crt430xG438.o  crt430xG439.o \
	crt430x435.o   crt430x436.o   crt430x437.o \
	crt430x447.o   crt430x448.o   crt430x449.o \
	crt430xG4616.o crt430xG4617.o crt430xG4618.o crt430xG4619.o

build-crt: ${crt_all_objs}

# match by name

${crt_all_objs}: crt%.o: gcrt0.S
	${AS} ${CPPFLAGS} -mmcu=msp$* ${ALL_ASFLAGS} -c $(ABSPATH)$< -o $@@

clean-crt:
	${RM} -f ${crt_all_objs}

install-crt: ${crt_all_objs} ${libdir}
	${INSTALL}

#--------------- a bit of libc

libc_libs = msp1/libc.a msp2/libc.a

libc_c_sources = abs.c atol.c bsearch.c errno.c labs.c \
_init_section__.c malloc.c atoi.c strtol.c strtoul.c \
sprintf.c snprintf.c vsprintf.c vsnprintf.c \
printf.c vprintf.c vuprintf.c uprintf.c puts.c \
rand.c itoa.c ltoa.c utoa.c ultoa.c

libc_asm_sources = abort.S div.S exit.S ldiv.S setjmp.S

libc_str_sources = \
isascii.c memccpy.c strchr.c strncat.c swab.c \
isblank.c memchr.c strcmp.c strncmp.c toascii.c \
bcmp.c iscntrl.c memcmp.c strcpy.c strncpy.c tolower.c \
bcopy.c isdigit.c memcpy.c strcspn.c strpbrk.c toupper.c \
bzero.c islower.c memmove.c strdup.c strrchr.c \
ffs.c isprint.c memset.c strlcat.c strsep.c \
index.c isspace.c rindex.c strlcpy.c strspn.c \
isalnum.c isupper.c strcasecmp.c strlen.c strstr.c \
isalpha.c isxdigit.c strcat.c strncasecmp.c strtok.c \
ispunct.c



libc_msp430_ct_objs_1 = ${libc_c_sources:%.c=%.o}
libc_msp430_ct_objs_2 = ${libc_c_sources:%.c=%.o}

libc_msp430_asmt_objs_1 = ${libc_asm_sources:%.S=%.o}
libc_msp430_asmt_objs_2 = ${libc_asm_sources:%.S=%.o}



libc_msp430_c_objs_1 = $(addprefix msp1/, $(libc_msp430_ct_objs_1))
libc_msp430_c_objs_2 = $(addprefix msp2/, $(libc_msp430_ct_objs_2))

libc_msp430_S_objs_1 = $(addprefix msp1/, $(libc_msp430_asmt_objs_1))
libc_msp430_S_objs_2 = $(addprefix msp2/, $(libc_msp430_asmt_objs_2))


libc_msp430_objs_1 = ${libc_msp430_c_objs_1}
libc_msp430_objs_2 = ${libc_msp430_c_objs_2}


build-libc: ${libc_libs}

${libc_msp430_objs_1}: msp1/%.o: stdlib/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp1 -c $(ABSPATH)$< -o $@@

${libc_msp430_objs_2}: msp2/%.o: stdlib/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp2 -c $(ABSPATH)$< -o $@@

${libc_msp430_S_objs_1}: msp1/%.o: stdlib/%.S
	${AS} -D_GNU_ASSEMBLER_ -mmcu=msp1 -c $(ABSPATH)$< -o $@@

${libc_msp430_S_objs_2}: msp2/%.o: stdlib/%.S
	${AS} -D_GNU_ASSEMBLER_ -mmcu=msp2 -c $(ABSPATH)$< -o $@@

libc_msp430_cstr_objs_1 = ${libc_str_sources:%.c=%.o}
libc_msp430_cstr_objs_2 = ${libc_str_sources:%.c=%.o}

libc_msp430_str_objs_1 = $(addprefix msp1/, $(libc_msp430_cstr_objs_1))
libc_msp430_str_objs_2 = $(addprefix msp2/, $(libc_msp430_cstr_objs_2))


${libc_msp430_str_objs_1}: msp1/%.o: string/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp1 -c $(ABSPATH)$< -o $@@

${libc_msp430_str_objs_2}: msp2/%.o: string/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp2 -c $(ABSPATH)$< -o $@@


all_objs1 = ${libc_msp430_objs_1} ${libc_msp430_str_objs_1} ${libc_msp430_S_objs_1}
all_objs2 = ${libc_msp430_objs_2} ${libc_msp430_str_objs_2} ${libc_msp430_S_objs_2}

msp1/libc.a: ${all_objs1}
	${AR} rc $@@ $?

msp2/libc.a: ${all_objs2}
	${AR} rc $@@ $?

.PHONY: clean-libc
clean-libc:
	${RM} -f msp1/libc.a msp2/libc.a msp1/*.o msp2/*.o

install-libc: ins-msp1 ins-msp2 ins-lib

ins-msp1: msp1/libc.a ${libdir}/msp1
	${INSTALL}

ins-msp2: msp2/libc.a ${libdir}/msp2
	${INSTALL}

ins-lib: msp1/libc.a ${libdir}
	${INSTALL}

#--------------- headers ---------------

install-headers: ins-hr ins-hs ins-msp430

ins-hr: $(wildcard $(srcdir)/../include/*.h) ${includedir}
	${INSTALL}

ins-hs: $(wildcard $(srcdir)/../include/sys/*.h) ${includedir}/sys
	${INSTALL}

ins-msp430: $(wildcard $(srcdir)/../include/msp430/*.h) ${includedir}/msp430
	${INSTALL}

fix-limits: $(wildcard $(srcdir)/../include/limits.h) ${includedir}/../../lib/gcc-lib/msp430/3.0/include
	${INSTALL}	

#--------------- directories ---------------
libc_dirs = msp1 msp2
install_lib_dirs = $(libdir) $(libdir)/msp1 $(libdir)/msp2 

$(libc_dirs) $(install_lib_dirs) $(includedir) $(includedir)/sys $(includedir)/msp430: 
	$(MD)


#------------------------------------------------------------------------
#------------------------------------------------------------------------
#------------------------------------------------------------------------
#------------------------------------------------------------------------
#-------------- Math & FP libs ---------------

math: build-libm


basic_fp = divsf.c fixsfsi.c floatdisf.c gtsf.c mulsf.c \
addsf.c eqsf.c fixunssfdi.c floatsisf.c lesf.c negsf.c \
cmpsf.c fixsfdi.c fixunssfsi.c gesf.c ltsf.c subsf.c nesf.c

fppfunc	= ef_acos.c ef_hypot.c ef_remainder.c kf_sin.c sf_erf.c sf_isinf.c sf_rint.c \
ef_acosh.c ef_j0.c ef_scalb.c kf_tan.c sf_expm1.c sf_isnan.c sf_scalbn.c \
ef_asin.c ef_j1.c ef_sinh.c sf_asinh.c sf_fabs.c sf_ldexp.c sf_signif.c \
ef_atan2.c ef_jn.c ef_sqrt.c sf_atan.c sf_finite.c sf_log1p.c sf_sin.c \
ef_atanh.c ef_log.c erf_gamma.c sf_cbrt.c sf_floor.c sf_logb.c sf_tan.c \
ef_cosh.c ef_log10.c erf_lgamma.c sf_ceil.c sf_frexp.c sf_modf.c sf_tanh.c \
ef_exp.c ef_pow.c kf_cos.c sf_copysign.c sf_ilogb.c sf_nan.c \
ef_fmod.c ef_rem_pio2.c kf_rem_pio2.c sf_cos.c sf_infinity.c sf_nextafter.c


libm_libs = msp1/libm.a msp2/libm.a msp1/libfp.a msp2/libfp.a

libm_msp430_fp_objs_1 = ${basic_fp:%.c=%.o}
libm_msp430_fp_objs_2 = ${basic_fp:%.c=%.o}

libm_msp430_fc_objs_1 = ${fppfunc:%.c=%.o}
libm_msp430_fc_objs_2 = ${fppfunc:%.c=%.o}


libm_msp430_c_objs_1 = $(addprefix msp1/, $(libm_msp430_fp_objs_1))
libm_msp430_c_objs_2 = $(addprefix msp2/, $(libm_msp430_fp_objs_2))

libm_msp430_cf_objs_1 = $(addprefix msp1/, $(libm_msp430_fc_objs_1))
libm_msp430_cf_objs_2 = $(addprefix msp2/, $(libm_msp430_fc_objs_2))


build-libm: ${libm_libs}

${libm_msp430_c_objs_1}: msp1/%.o: libm/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp1 -c $(ABSPATH)$< -o $@@

${libm_msp430_c_objs_2}: msp2/%.o: libm/%.c
	${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} -mmcu=msp2 -c $(ABSPATH)$< -o $@@


${libm_msp430_cf_objs_1}: msp1/%.o: libm/%.c
	${CC} ${CPPFLAGS} -mmcu=msp1 ${ALL_CFLAGS} -c $(ABSPATH)$< -o $@@

${libm_msp430_cf_objs_2}: msp2/%.o: libm/%.c
	${CC} ${CPPFLAGS} -mmcu=msp2 ${ALL_CFLAGS} -c $(ABSPATH)$< -o $@@


allm_objs1 = ${libm_msp430_cf_objs_1} 
allm_objs2 = ${libm_msp430_cf_objs_2}

msp1/libm.a: ${allm_objs1}
	${AR} rc $@@ $?

msp2/libm.a: ${allm_objs2}
	${AR} rc $@@ $?

msp1/libfp.a:${libm_msp430_c_objs_1}
	${AR} rc $@@ $?

msp2/libfp.a:${libm_msp430_c_objs_2}
	${AR} rc $@@ $?

install-libm: insm-msp1 insm-msp2 insm-lib

insm-msp1: msp1/libm.a msp1/libfp.a ${libdir}/msp1
	${INSTALL}

insm-msp2: msp2/libm.a msp2/libfp.a ${libdir}/msp2
	${INSTALL}

insm-lib: msp1/libm.a ${libdir}
	${INSTALL}

.PHONY: clean-libm
clean-libm:
	${RM} -f msp1/libm.a msp2/libm.a msp1/libfp.a msp2/libfp.a msp1/*.o msp2/*.o
@


1.44
log
@Interrupt definitions not compatible with the mspgcc macros in the 42x0 and 21x1 headers
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.43 2005/03/17 14:18:12 coppice Exp $
d60 27
a86 22
	crt430x110.o  crt430x112.o \
	crt430x1101.o crt430x1111.o crt430x1121.o \
	crt430x1122.o crt430x1132.o \
	crt430x122.o  crt430x123.o \
	crt430x1222.o crt430x1232.o \
	crt430x133.o  crt430x135.o \
	crt430x1331.o crt430x1351.o \
	crt430x147.o  crt430x148.o  crt430x149.o \
	crt430x1471.o crt430x1481.o crt430x1491.o \
	crt430x155.o  crt430x156.o  crt430x157.o \
	crt430x167.o  crt430x168.o  crt430x169.o  crt430x1610.o crt430x1611.o crt430x1612.o \
	crt430x2101.o crt430x2111.o crt430x2121.o crt430x2131.o \
	crt430x311.o  crt430x312.o  crt430x313.o  crt430x314.o  crt430x315.o \
	crt430x323.o  crt430x325.o  crt430x336.o  crt430x337.o \
	crt430x412.o  crt430x413.o  crt430x415.o  crt430x417.o \
	crt430x423.o  crt430x425.o  crt430x427.o \
	crt430x4250.o crt430x4260.o crt430x4270.o \
	crt430xE423.o crt430xE425.o crt430xE427.o \
	crt430xW423.o crt430xW425.o crt430xW427.o \
	crt430xG437.o crt430xG438.o crt430xG439.o \
	crt430x435.o  crt430x436.o  crt430x437.o \
	crt430x447.o  crt430x448.o  crt430x449.o
@


1.43
log
@Added the 21x1, 42x and 42x0 devices to the make file
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.42 2004/08/23 20:20:54 ctakahashi Exp $
d6 1
a6 1
VERSION = 20030812
d10 1
@


1.42
log
@itoa() now displays 0 properly.  Added ltoa, utoa, and ultoa
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.41 2004/07/08 19:01:14 coppice Exp $
d70 1
d74 2
@


1.41
log
@Added FG43x
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.40 2004/07/02 19:09:31 ctakahashi Exp $
d100 1
a100 1
rand.c itoa.c
@


1.40
log
@Added char *itoa(int number, char *str, int radix); function to stdlib.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.39 2004/04/08 20:21:26 cliechti Exp $
d75 1
@


1.39
log
@bugfixes reported by Rick Jenkins
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.38 2004/03/02 13:19:39 coppice Exp $
d99 1
a99 1
rand.c
@


1.38
log
@Added 415 and 417
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.37 2004/02/24 23:54:19 coppice Exp $
d98 2
a99 1
printf.c vprintf.c vuprintf.c uprintf.c puts.c
@


1.37
log
@Added support for the F1612
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.36 2003/10/10 02:47:31 cliechti Exp $
d72 1
a72 1
	crt430x412.o  crt430x413.o \
@


1.36
log
@added puts implementation, required if printf is there too, because gcc is so smart and replaces printfs of plain strings with calls to puts
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.35 2003/09/29 22:27:16 cliechti Exp $
d69 1
a69 1
	crt430x167.o  crt430x168.o  crt430x169.o  crt430x1610.o crt430x1611.o \
@


1.35
log
@change uprintf too, works now the same way as the others (returning len, abort on EOF)
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.34 2003/09/26 01:44:22 cliechti Exp $
d98 1
a98 1
printf.c vprintf.c vuprintf.c uprintf.c
@


1.34
log
@new stdio functions added:
  printf vprintf sprintf snprinf vsprintf vsnprintf

they all depend on vuprintf
printf and vprintf additionaly depend on "int putchar(char c)" which has to be supplied by the user.

vuprintf implements a formatted write with an output function. the output is immediately stopped if the output function returns a negative value (EOF). vuprintf returns the number of characters printed.

attention: the old uprintf implementation is still there for backwards compatibility and has a different siganture (does not return length, ouput func is void)
sprintf is replaced by new new impl and the dummy snprintf is replaced by a real implementation with size check.
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.33 2003/08/28 14:45:49 coppice Exp $
a31 5

## Uncomment next line if you want uprintf print trailing zero
## at the end of output
#CFLAGS += -DSEND_TRAILING_ZERO_IN_UPRINTF

@


1.33
log
@Added the 1610, 1611 and 14x1 devices to the build
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.32 2003/08/12 14:00:12 coppice Exp $
d101 3
a103 1
_init_section__.c malloc.c atoi.c strtol.c strtoul.c sprintf.c uprintf.c
@


1.32
log
@Oops! I forgot to update the version date
@
text
@d4 1
a4 1
# $Id:$
d72 1
d74 1
a74 1
	crt430x167.o  crt430x168.o  crt430x169.o \
@


1.31
log
@Added the FE42x and FW42x devices
@
text
@d1 6
a6 1
VERSION = 20030512
@


1.30
log
@Sorted the devices into order, so it is easier to check for missing and
duplicated devices. Added the 1122 and 1132, which had been missed out. :-)
@
text
@d72 2
@


1.29
log
@add _init_section__.c and all around it
@
text
@d1 1
a1 1
VERSION = 20011224
d11 4
a14 4
prefix_msp430 = ${prefix}/${target}
bindir = ${prefix_msp430}/bin
includedir = ${prefix_msp430}/include
libdir = ${prefix_msp430}/lib
d58 5
a62 3
crt_all_objs = crt430x1101.o crt430x1111.o crt430x1121.o \
	crt430x110.o crt430x112.o \
	crt430x122.o crt430x123.o \
d64 1
a64 5
	crt430x133.o crt430x135.o \
	crt430x147.o crt430x148.o crt430x149.o \
	crt430x412.o crt430x413.o \
	crt430x311.o crt430x312.o crt430x313.o crt430x314.o crt430x315.o \
	crt430x323.o crt430x325.o crt430x336.o crt430x337.o \
d66 8
a73 4
	crt430x447.o crt430x448.o crt430x449.o \
	crt430x435.o crt430x436.o crt430x437.o \
	crt430x167.o crt430x168.o crt430x169.o \
	crt430x155.o crt430x156.o crt430x157.o
a129 3



a289 1

@


1.28
log
@change buffer size
@
text
@d91 1
a91 1
		 malloc.c atoi.c strtol.c strtoul.c sprintf.c uprintf.c
@


1.27
log
@add nesf.c
@
text
@d140 1
a140 1
	${AS} -D_GNU_ASSEMBLER_ -mmcu-msp1 -c $(ABSPATH)$< -o $@@
d143 1
a143 1
	${AS} -D_GNU_ASSEMBLER_ -mmcu-msp2 -c $(ABSPATH)$< -o $@@
@


1.26
log
@strip multiple spaces
@
text
@d218 1
a218 1
cmpsf.c fixsfdi.c fixunssfsi.c gesf.c ltsf.c subsf.c
@


1.25
log
@split basic FP lib and math functions
@
text
@d21 3
a23 3
  RM = rm
  MD = mkdir -p $@@
  INSTALL = install -c -m644 $^/
d42 1
a42 1
  source_dirs = gnu
d44 1
a44 1
  source_dirs = bsd
d93 1
a93 1
libc_asm_sources = abort.S  div.S  exit.S  ldiv.S  setjmp.S
d96 9
a104 9
           isascii.c   memccpy.c     strchr.c       strncat.c  swab.c \
           isblank.c   memchr.c      strcmp.c       strncmp.c  toascii.c \
bcmp.c     iscntrl.c   memcmp.c      strcpy.c       strncpy.c  tolower.c \
bcopy.c    isdigit.c   memcpy.c      strcspn.c      strpbrk.c  toupper.c \
bzero.c    islower.c   memmove.c     strdup.c       strrchr.c \
ffs.c      isprint.c   memset.c      strlcat.c      strsep.c \
index.c    isspace.c   rindex.c      strlcpy.c      strspn.c \
isalnum.c  isupper.c   strcasecmp.c  strlen.c       strstr.c \
isalpha.c  isxdigit.c  strcat.c      strncasecmp.c  strtok.c \
d170 1
a170 1
	${RM} -f msp1/libc.a  msp2/libc.a msp1/*.o msp2/*.o
d216 12
a227 12
basic_fp = 	divsf.c  fixsfsi.c  floatdisf.c   gtsf.c       mulsf.c \
		addsf.c  eqsf.c     fixunssfdi.c  floatsisf.c  lesf.c   negsf.c \
		cmpsf.c  fixsfdi.c  fixunssfsi.c  gesf.c       ltsf.c   subsf.c \

fppfunc	=	ef_acos.c   ef_hypot.c     ef_remainder.c  kf_sin.c       sf_erf.c       sf_isinf.c      sf_rint.c \
ef_acosh.c  ef_j0.c        ef_scalb.c      kf_tan.c       sf_expm1.c     sf_isnan.c      sf_scalbn.c \
ef_asin.c   ef_j1.c        ef_sinh.c       sf_asinh.c     sf_fabs.c      sf_ldexp.c      sf_signif.c \
ef_atan2.c  ef_jn.c        ef_sqrt.c       sf_atan.c      sf_finite.c    sf_log1p.c      sf_sin.c \
ef_atanh.c  ef_log.c       erf_gamma.c     sf_cbrt.c      sf_floor.c     sf_logb.c       sf_tan.c \
	ef_cosh.c   ef_log10.c     erf_lgamma.c    sf_ceil.c      sf_frexp.c     sf_modf.c       sf_tanh.c \
	ef_exp.c    ef_pow.c       kf_cos.c        sf_copysign.c  sf_ilogb.c     sf_nan.c \
	ef_fmod.c   ef_rem_pio2.c  kf_rem_pio2.c   sf_cos.c       sf_infinity.c  sf_nextafter.c 
d290 1
a290 1
	${RM} -f msp1/libm.a  msp2/libm.a msp1/libfp.a msp2/libfp.a msp1/*.o msp2/*.o
@


1.24
log
@fixed macro defenition bugs in headers.
Added new 15x and 16x devices.
@
text
@d230 1
a230 1
libm_libs = msp1/libm.a msp2/libm.a
d262 2
a263 2
allm_objs1 = ${libm_msp430_c_objs_1} ${libm_msp430_cf_objs_1} 
allm_objs2 = ${libm_msp430_c_objs_2} ${libm_msp430_cf_objs_2}
d271 6
d279 1
a279 1
insm-msp1: msp1/libm.a ${libdir}/msp1
d282 1
a282 1
insm-msp2: msp2/libm.a ${libdir}/msp2
d290 1
a290 1
	${RM} -f msp1/libm.a  msp2/libm.a msp1/*.o msp2/*.o
@


1.23
log
@new fp
@
text
@d69 3
a71 1
	crt430x435.o crt430x436.o crt430x437.o
@


1.22
log
@remove fix-limits target
@
text
@d26 1
a26 1
CFLAGS = -Wall -W -Wstrict-prototypes -O2 -g
d218 8
a225 1
fppfunc	=	sqrt.S
d233 2
a234 2
libm_msp430_fs_objs_1 = ${fppfunc:%.S=%.o}
libm_msp430_fs_objs_2 = ${fppfunc:%.S=%.o}
d240 2
a241 2
libm_msp430_s_objs_1 = $(addprefix msp1/, $(libm_msp430_fs_objs_1))
libm_msp430_s_objs_2 = $(addprefix msp2/, $(libm_msp430_fs_objs_2))
d253 2
a254 2
${libm_msp430_s_objs_1}: msp1/%.o: libm/%.S
	${AS} ${CPPFLAGS} -mmcu=msp1 ${ALL_ASFLAGS} -c $(ABSPATH)$< -o $@@
d256 2
a257 2
${libm_msp430_s_objs_2}: msp2/%.o: libm/%.S
	${AS} ${CPPFLAGS} -mmcu=msp2 ${ALL_ASFLAGS} -c $(ABSPATH)$< -o $@@
d260 2
a261 2
allm_objs1 = ${libm_msp430_c_objs_1} ${libm_msp430_s_objs_1} 
allm_objs2 = ${libm_msp430_c_objs_2} ${libm_msp430_s_objs_2}
@


1.21
log
@add msp430x1222 msp430x1232
@
text
@d183 1
a183 1
install-headers: ins-hr ins-hs ins-msp430 fix-limits
@


1.20
log
@add sqrt function
@
text
@d61 1
@


1.19
log
@fixes to limits.h
@
text
@d217 3
d225 4
d232 3
d244 10
a253 2
allm_objs1 = ${libm_msp430_c_objs_1}
allm_objs2 = ${libm_msp430_c_objs_2}
@


1.18
log
@add fixes for limit
@
text
@d182 1
a182 1
install-headers: ins-hr ins-hs ins-msp430
@


1.17
log
@remove printing trailing zero from uprintf()
@
text
@d193 3
@


1.16
log
@/* recently added:
1331, 1351, 435, 436, 437, 447, 448, 449 */
@
text
@d28 5
@


1.15
log
@fix mulsf name ;) (__mulsf3)
@
text
@d60 4
a63 1
	crt430x323.o crt430x325.o crt430x336.o crt430x337.o 
d97 1
a97 1

@


1.14
log
@add new functs.
@
text
@d86 1
a86 1
atol.c     isblank.c   memchr.c      strcmp.c       strncmp.c  toascii.c \
@


1.13
log
@add libm:
only basic FP routines implemented.
@
text
@d26 1
a26 1
CFLAGS = -Wall -W -Wstrict-prototypes -O2
d84 11
a94 4
libc_str_sources =  	ffs.c    memcmp.c   rindex.c      strcmp.c   strncat.c  strrchr.c   strstr.c strncasecmp.c \
			bcmp.c   index.c    memcpy.c   strcasecmp.c  strcpy.c   strlcat.c   strncmp.c  strsep.c     strtok.c \
			bcopy.c  memccpy.c  memmove.c  strcat.c      strcspn.c  strlcpy.c   strncpy.c    swab.c \
			bzero.c  memchr.c   memset.c   strchr.c      strdup.c   strlen.c    strpbrk.c  strspn.c \
@


1.12
log
@add uprintf.c
@
text
@d46 1
a46 1
all: build-crt build-libc
d48 1
a48 1
install: install-crt install-libc install-headers
d50 1
a50 1
clean: clean-crt clean-libc
d184 56
@


1.11
log
@fixed installation path for new directory and files
@
text
@d80 1
a80 1
		 malloc.c atoi.c strtol.c strtoul.c sprintf.c
@


1.10
log
@split strncasecmp and strcasecmp
@
text
@d26 1
a26 1
CFLAGS = -Wall -W -Wstrict-prototypes -O
d33 1
a33 1
opt_speed_cflags = -O
d167 1
a167 1
install-headers: ins-hr ins-hs
d175 3
d182 1
a182 1
$(libc_dirs) $(install_lib_dirs) $(includedir) $(includedir)/sys:
@


1.9
log
@add sprintf
and stdio.h
@
text
@d26 1
a26 1
CFLAGS = -Wall -W -Wstrict-prototypes -O2
d84 1
a84 1
libc_str_sources =  	ffs.c    memcmp.c   rindex.c      strcmp.c   strncat.c  strrchr.c   strstr.c \
@


1.8
log
@I started it!!!!!!!!
@
text
@d80 1
a80 1
		 malloc.c atoi.c strtol.c strtoul.c
d154 1
a154 1
install-libc: ins-msp1 ins-msp2 
d162 2
@


1.7
log
@Add some functions.
No bugfixes - no bugs :)
@
text
@d122 1
a122 1
	${AS} -mmcu-msp1 -c $(ABSPATH)$< -o $@@
d125 1
a125 1
	${AS} -mmcu-msp2 -c $(ABSPATH)$< -o $@@
@


1.6
log
@add setjmp functions
@
text
@d80 1
a80 1
	malloc.c 
d82 1
a82 1
libc_asm_sources = setjmp.S
@


1.5
log
@remove mkdir
@
text
@d80 3
a82 1
	malloc.c
d94 5
d102 3
d109 4
d121 5
d141 2
a142 2
all_objs1 = ${libc_msp430_objs_1} ${libc_msp430_str_objs_1}
all_objs2 = ${libc_msp430_objs_2} ${libc_msp430_str_objs_2}
@


1.4
log
@add 11x1 devices
add INTERRUPT_VECTORS macro
@
text
@a98 1

a133 1
	$(MD) msp1 msp2
@


1.3
log
@resolved problem with make clean-libc
@
text
@d53 2
a54 1
crt_all_objs = crt430x1x1.o crt430x110.o crt430x112.o \
@


1.2
log
@lots of improvements, additions and bugfixes.
removed unnecessary files.
@
text
@d131 1
@


1.1
log
@Initial revision
@
text
@d26 1
a26 1
CFLAGS = -Wall -W -Wstrict-prototypes -O -g 
d81 7
d108 18
a125 1
msp1/libc.a: ${libc_msp430_objs_1}
d128 1
a128 1
msp2/libc.a: ${libc_msp430_objs_2}
d132 1
a132 1
	${RM} -f msp1/libc.a ${libc_msp430_objs_1} msp2/libc.a ${libc_msp430_objs_2}
a133 1

@


1.1.1.1
log
@initial upload
@
text
@@
