OBJS		= ygl.o misc.o draw.o
TARGET          = libYgl.a

# Uncomment next line to use MultiBuffer extension
MULTIBUF = -DMULTIBUF

# Uncomment next two lines to prepend "ygl_" to all function names 
#YGL_PREFIX      = -DYGL_PREFIX
#TARGET          = libYglp.a

CDEBUGFLAGS=-O

COPTS =
# COPTS = -Aa -D_HPUX_SOURCE -L/usr/lib/X11R4 -I/usr/include/X11R4 # For HP-UX 8.0x
# COPTS = -Ae -L/usr/lib/X11R5 -I/usr/include/X11R5 # For HP-UX 9.0x

# End of configuration

CFLAGS		= $(CDEBUGFLAGS) $(COPTS) $(MULTIBUF)

all: 	$(TARGET)

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

$(OBJS):	header.h

$(TARGET):	$(OBJS)
	/bin/rm -f $@
	ar rv $@ $(OBJS)
	ranlib $@

install:	$(TARGET)
	cp $(TARGET) /usr/lib
	ranlib /usr/lib/$@

clean:
	/bin/rm -f *.o *~ $(TARGET)
