#
# makefile for gnu_getopt(), 1/98 kellis
# copy the file getopt.h into  /usr/include
# copy the file libgetopt.a into your /usr/lib
# or type make install
#
# Useage: add #include <getopt.h> in the C code you want 
# then don't forget to link in the Makefile -lgetopt
#
# here is to recompile it yourself:
CC= gcc
CFLAGS=	-O2 -Wall

OBJS= getopt.o getopt1.o

all: libgetopt.a

clean:
	rm *.o
	rm libgetopt.a

libgetopt.a: $(OBJS)
	ar -s libgetopt.a *.o

install:
	cp getopt.h /usr/include
	cp libgetopt.a /usr/lib	
	echo "Installation done."
