summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..12237ab
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,21 @@
+CFLAGS=-fpic -shared -pedantic -Wall -g3
+TARGET=libline.so
+PREFIX:=/usr/local
+
+all: libline.so ircify
+
+ircify: LDLIBS=-Lline
+ircify: ircify.c
+
+$(TARGET): libline.o
+ ld -shared -o $(TARGET) libline.o
+
+clean:
+ rm -f $(TARGET) ircify
+ rm *.o
+
+install: all
+ mkdir -p $(PREFIX)/lib
+ mkdir -p $(PREFIX)/include
+ install $(TARGET) $(PREFIX)/lib/$(TARGET)
+ install line.h $(PREFIX)/include/line.h