X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=fishdescriptor%2FMakefile;h=e6b493ac17e5e4bc13084564e2b51690f76bc0c7;hb=709c4ee97784b3489c36ed81578a0c0ab3181622;hp=17bb3e777e2270890dfb136138f1f5e2bd1f3339;hpb=8774d24133cf1399c70743416dc5727ce7c4a0f4;p=chiark-utils.git diff --git a/fishdescriptor/Makefile b/fishdescriptor/Makefile index 17bb3e7..e6b493a 100644 --- a/fishdescriptor/Makefile +++ b/fishdescriptor/Makefile @@ -1,4 +1,17 @@ -fishdescriptor-donate.so: donate.o - $(CC) -shared -soname $(LIBCANON) -o $@ $< $(LIBS) +OPTIMISE = -O2 +DEBUG = -g + +CFLAGS = -Wall -Werror -Wwrite-strings +CFLAGS += $(OPTIMISE) $(DEBUG) + +MAJOR=1 +MINOR=0 +LIBCANON= libfishdescriptor-donate.so.$(MAJOR) +LIBTARGET= $(LIBCANON).$(MINOR) + +all: $(LIBTARGET) + +$(LIBTARGET): donate.o + $(CC) -shared -Wl,-soname -Wl,$(LIBCANON) -o $@ $< $(LIBS) donate.o: donate.c