# Adapted for use with project 'ipv6calc' by Peter Bieringer <pb (at) bieringer.de>
# $Id: 50d015eec16c0bace7c5914e1e223c090d4d1e1a $

CC = @CC@

DEFAULT_CFLAGS ?= -O2 -Wall -g @CFLAGS_EXTRA@

all: getopt1.o getopt.o

getopt1.o: getopt1.c
	${CC} $(DEFAULT_CFLAGS) $(CFLAGS) -fPIC -o getopt1.o -c getopt1.c

getopt.o: getopt.c
	${CC} $(DEFAULT_CFLAGS) $(CFLAGS) -fPIC -o getopt.o -c getopt.c

clean:
	rm -f *.o *.so.1 *.a

distclean:
	${MAKE} clean

autoclean:
	${MAKE} distclean
