aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2019-05-19 07:46:00 +0000
committerepoch <epoch@hack.thebackupbox.net>2019-05-19 07:46:00 +0000
commit5ed56236f1ee57e71c91d356c7160aedc6e515f0 (patch)
tree552445eb1692c1b15e77528cfbbf8f22b769e388 /GNUmakefile
downloadlibidc-5ed56236f1ee57e71c91d356c7160aedc6e515f0.tar.gz
libidc-5ed56236f1ee57e71c91d356c7160aedc6e515f0.zip
it works but it is NOT pretty
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