PREFIX=/

LIB_NAME = tmpdir
LIB_VERS = 1
LIB_FULL = lib$(LIB_NAME).so.$(LIB_VERS)
LIB_OBJS = tmpdir.o
CFLAGS = -g -O2 -Wall -W -Werror -Wshadow -Wwrite-strings
CFLAGS += -Wbad-function-cast -Wcast-qual -Wcast-align 
CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
#CFLAGS += -Wconversion

all: $(LIB_FULL)

clean: 
	rm -f ./*.o ./*.so*

dist-clean: clean
	rm -f ./*~ ./*% ./*.bak ./\#*\# core

$(LIB_FULL): $(LIB_OBJS)
	$(LINK.c) -shared -o $@ $(LIB_OBJS)
