From 5ed56236f1ee57e71c91d356c7160aedc6e515f0 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 19 May 2019 07:46:00 +0000 Subject: it works but it is NOT pretty --- GNUmakefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 GNUmakefile (limited to 'GNUmakefile') 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 -- cgit v1.2.3