#
# Makefile for Miscellaneous routines (SunOS Version)
#

#
# Objects made by this makefile
#
LIBS = misc.a

#
# Where the wild things are
#
SRC = .
INCLUDES = -I$(SRC)

#
# Sun Version
#
CC = gcc
GCCWARNINGS = -Wreturn-type -Wunused -Wswitch -Wcomment -Wformat
CFLAGS = -ansi -g $(GCCWARNINGS) $(INCLUDES)


#
# Objects
#
OBJS = \
	crash.o \
	date.o \
	filenames.o \
	files.o \
	find.o \
	shell.o \
	strings.o

#
# Main dependency
#
$(LIBS) : $(OBJS)
	/bin/rm -f $(LIBS) ;\
	$(AR) $(ARFLAGS) $(LIBS) $(OBJS) ;


#
# Special dependencies
#
%.o : $(SRC)/%.c
	$(CC) $(CFLAGS) -c $<

all : $(LIBS)

clean :
	/bin/rm -f $(OBJS) $(LIBS)
