# === Makefile ================================================================
# Copyright (c) 1991, 1992, 1993 Chris Provenzano, proven@athena.mit.edu
#
#	Description: This file is for creating libpthread.a
#
#	1.00 93/11/12 proven
#		-Initial cut for threadsafe stdio.
#

#INSTALL_PATH = $${HOME}
      BINDIR = $(INSTALL_PATH)/bin/@sys
      LIBDIR = $(INSTALL_PATH)/lib/@sys
      MANDIR = $(INSTALL_PATH)/man
      INCDIR = $(INSTALL_PATH)/include

        MAKE = make
          AR = ar
          AS = gas
          CC = gcc
         CPP = $(CC) -E -I$(INCDIR)
      CFLAGS = -g -O -I../include 
 CDEBUGFLAGS = -g -DDEBUG		# -g, -O, -DDEBUG
       CLIBS = 
          LD = gld

        CSRC = findfp.c fvwrite.c fwrite.c printf.c vfprintf.c

     HEADERS =

        OBJS = findfp.o fvwrite.o fwrite.o printf.o vfprintf.o

       LINKS =

   LIBRARIES = $(OBJS)

################################################################################
#
# Here starts the nitty grity part of the Makefile.

all: $(LIBRARIES) $(BINARIES)

clean: 
	rm -f $(OBJS) a.out core maketmp makeout

depend:
	sed '/\#\#\# Dependencies/q' < Makefile > maketmp
	(for i in $(CSRC);do $(CPP) -M $$i;done) >> maketmp
	cp maketmp Makefile

realclean: clean
	rm -f $(LIBRARIES) $(BINARIES) $(LINKS)

.c.s:
	$(CC) $(CFLAGS) -S $<

.c.o:
	$(CC) $(CFLAGS) -c $<

.S.o:
	$(CC) $(CFLAGS) -c $<

.s.o:
	$(AS) $<

################################################################################
### Do not remove the following line. It is for depend #########################
### Dependencies:
