L3CSRCS=$(srcdir)/config/generic/string/strlen.c	\
	$(srcdir)/config/generic/string/strcpy.c	\
	$(srcdir)/config/generic/string/memset.c	\
	$(srcdir)/config/generic/string/memchr.c	\
	$(srcdir)/config/generic/string/bcopy.c		\
	$(srcdir)/config/generic/string/strcmp.c	\
	$(srcdir)/config/generic/string/strchr.c	\
	$(srcdir)/config/generic/string/strcat.c	\
	$(srcdir)/config/generic/string/ffs.c		\
	$(srcdir)/config/generic/string/strncmp.c	\
	$(srcdir)/config/generic/string/strncpy.c

L3GSCOBJS=chkr-string.o ffs.o # strlen.o strcpy.o memset.o memchr.o strchr.o bcopy.o strcmp.o \
	strcat.o ffs.o strncmp.o strncpy.o

L3COBJS=sigset.o sigprocmask.o sigvec.o sigaction.o sig.o _sbrk.o

$(L3COBJS):
	$(CC) -c $(ALL_CFLAGS) $(srcdir)/config/sparc/sunos/$(subst .o,.c,$@) -o $@

generic.o:
	$(CC) -c $(ALL_CFLAGS) $(srcdir)/config/generic/generic.c -o generic.o

$(L3GSCOBJS):
	$(CC) -c $(ALL_CFLAGS) $(srcdir)/config/generic/string/$(subst .o,.c,$@) -o $@

gnu.a.out.o: message.h
	$(CC) -c $(ALL_CFLAGS) $(srcdir)/config/obj-formats/gnu.a.out.c -o $@

startup.o: $(srcdir)/config/sparc/sunos/startup.c
	$(CC) -c -fdollars-in-identifiers $(ALL_CFLAGS) $(srcdir)/config/sparc/sunos/startup.c -o startup.o

sigtramp.o: $(srcdir)/config/sparc/sunos/sigtramp.S
	$(CC) -c $(ALL_ASFLAGS) $(srcdir)/config/sparc/sunos/sigtramp.S -o $@

syscalls.o: $(srcdir)/config/sparc/sunos/syscalls.S
	$(CC) -c $(ALL_ASFLAGS) $(srcdir)/config/sparc/sunos/syscalls.S -o $@

chkr-string.o: $(srcdir)/config/generic/string/chkr-string.c ./chkr-string.h

sigset.o: $(srcdir)/config/sparc/sunos/sigset.c
sigprocmask.o: $(srcdir)/config/sparc/sunos/sigprocmask.c
sigvec.o: $(srcdir)/config/sparc/sunos/sigvec.c
sigaction.o: $(srcdir)/config/sparc/sunos/sigaction.c
sig.o: $(srcdir)/config/sparc/sunos/sig.c
_sbrk.o: $(srcdir)/config/sparc/sunos/_sbrk.c
generic.o: $(srcdir)/config/generic/generic.c
