# Makefile for ddlib by Hydra.
#
# 08-08-98: Modified by flower to compile for with g++

CC=g++

CFLAGS= -O2 -I../main/ -I. -DUNIX -fomit-frame-pointer -pipe -Wall

LDSHARED=gcc
LDFLAGS=-L. -ldd

prefix=/usr/local

VER=1.0.0
LIBS=libdd.a

AR=ar rc
RANLIB=ranlib
OBJS = libdd.o

TEST_OBJS = example.o minigzip.o

all: libdd.a

libdd.a: $(OBJS)
	$(AR) $@ $(OBJS)
	-@ ($(RANLIB) $@ || true) 2>/dev/null

clean:
	rm -f *.o *~ libdd.a libdd.so* testlib

libdd.o: ddlib.h
