# srr/lib/Makefile
#
# $Id: Makefile,v 1.12 2001/07/26 18:26:53 andrew Exp $
#

CFLAGS = -Wall -I. -I../inc

# Export SRRDEBUG=y to enable debugging

ifeq ($(SRRDEBUG),n)
  CFLAGS += -O2
else
  CFLAGS += -g # "-O" is needed to expand inlines
endif

LIB	= libsrr.a
SRC	= srr_lib.c
OBJ	= $(SRC:.c=.o)

all: deps $(LIB)

$(LIB): $(OBJ)
	$(AR) rv $@ $^

clean:
	rm -f *.o *~ core

empty: clean
	rm -f .depend $(LIB)

deps:
	@$(CC) -M $(CFLAGS) $(SRC) > .depend

-include .depend

# DO NOT DELETE


