#
# This is Makefile of stdlib functions for Linux.
#

include ../Makeconfig

include ../Makerules

LIB:=../$(LIB)
LIBALIAS:=../$(LIBALIAS)

JUMP_DIR:=../jump/$(SHLIB)
JUMP_LIB=libc

ifndef OPTFLAGS
OPTFLAGS= -O6 -fomit-frame-pointer
endif

CFLAGS = $(WFLAGS) $(OPTFLAGS) $(INC) $(XCFLAGS)
INC=-I.

DIRS:=

SRC1S= __random.c _quicksort.c abort.c atexit.c atof.c \
	atoi.c atol.c bsearch.c exit.c labs.c ldiv.c \
	mblen.c mbstowcs.c mbtowc.c on_exit.c qsort.c rand.c \
	strtol.c strtoul.c wcstombs.c wctomb.c
SRC2S= abs.c random.c srand.c
SRCS= $(SRC1S) $(SRC2S)
ASMS= $(SRC1S:.c=.s) $(SRC2S:.c=.s)
OBJS= $(SRC1S:.c=.o)
ALIASES= $(SRC2S:.c=.o)
 
all: lib libalias
   
include ../Maketargets  
