chiark / gitweb /
fishdescriptor: work on python code
[chiark-utils.git] / fishdescriptor / Makefile
index dd0dfbe3bc92db5e4cb036d93488b4b2083d537a..e6b493ac17e5e4bc13084564e2b51690f76bc0c7 100644 (file)
@@ -1,4 +1,17 @@
-fishdescriptor-donate.so:      donate.o
-       $(CC) -shared -Wl,-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