# Makefile for build libgnuarchive for NeXTSTEP
#
#    Copyright (C)  1993  The Board of Trustees of
#    The Leland Stanford Junior University.  All Rights Reserved.
#
# Authors: Paul Kunz and Imran Qureshi
#

TARGLIB = ../m68k_obj/libgnuarchive.a

OSDIR = ../

# if libobjc is in OpenStep/, then...
CINCLUDES = -I.
CFLAGS    = -g -Wall $(CINCLUDES) -traditional-cpp
DEBUG_CFLAGS = -g -Wall -DDEBUG $(CINCLUDES)

CC	  = cc

# Specify all the members to be included in the library

LIBMEMS = $(TARGLIB)(archive.o) \
	  $(TARGLIB)(encoding.o) \
	  $(TARGLIB)(hash.o) \
	  $(TARGLIB)(misc.o)

SRCS	  = *.c

.SUFFIXES : .m .c
.m.a:
	$(CC) ${CFLAGS} $(OTHER_CFLAGS) -c -o $% $<
	ar rv $@ $%
	rm -f $%

.c.a:
	$(CC) $(CFLAGS) $(OTHER_CFLAGS) -c -o $% $<
	ar rv $@ $%
	rm -f $%

.PRECIOUS: $(TARGLIB)


all:	lib

lib: $(TARGLIB)

$(TARGLIB) : $(LIBMEMS)
	ranlib $@

depend:
	$(MAKEDEPEND) -p$(TARGLIB)\( -o.o\) $(CINCLUDES) -I. $(SOURCES)

# DO NOT DELETE THIS LINE -- make depend depends on it.
 
