#!/usr/bin/make

OPTS = -O2 -I..
SH_OPTS = -fpic -shared $(OPTS)
EXT = .so
CC = gcc

all: hint${EXT} 

hint${EXT}: hint.o
	$(CC) $(SH_OPTS) hint.o -o hint${EXT}
	strip --strip-all hint${EXT}

hint.o: hint.c
	$(CC) $(OPTS) -c hint.c

clean:
	rm -f hint.so
	rm -f *.o
	rm -f *~


