* tiny
[mascara-docs.git] / compilers / bcc / linux86-0.16.17 / libc / stdio / Makefile
blob221ad8fa1e2495c47742eef53b00daf964ad3cbe
1 # Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
2 # This file is part of the Linux-8086 C library and is distributed
3 # under the GNU Library General Public License.
5 ifneq ($(LIB_CPU),i86)
6 CFLAGS=$(CCFLAGS) $(LIBDEFS) -DFLOATS
7 endif
9 ASRC=stdio.c
10 AOBJ=_stdio_init.o fputc.o fgetc.o fflush.o fgets.o gets.o fputs.o \
11 puts.o fread.o fwrite.o fopen.o fdopen.o freopen.o __fopen.o \
12 fclose.o fseek.o rewind.o ftell.o setbuffer.o setvbuf.o ungetc.o
14 PSRC=printf.c
15 POBJ=printf.o sprintf.o fprintf.o vprintf.o vsprintf.o vfprintf.o fp_print.o
17 SSRC=scanf.c
18 SOBJ=scanf.o sscanf.o fscanf.o vscanf.o vsscanf.o vfscanf.o
20 OBJ= $(AOBJ) $(POBJ) $(SOBJ)
22 CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
24 all: $(LIBC)
25 @$(RM) $(OBJ)
27 $(LIBC): $(LIBC)($(OBJ))
29 $(LIBC)($(AOBJ)): $(ASRC)
30 $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
31 $(AR) $(ARFLAGS) $@ $*.o
33 $(LIBC)($(POBJ)): $(PSRC)
34 $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
35 $(AR) $(ARFLAGS) $@ $*.o
37 $(LIBC)($(SOBJ)): $(SSRC)
38 $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
39 $(AR) $(ARFLAGS) $@ $*.o
41 transfer:
42 -@rm -f ../include/stdio.h
43 cp -p stdio.h ../include/.
45 clean:
46 rm -f *.o libc.a ../include/stdio.h
48 $(LIBC)($(OBJ)): stdio.h