diff options
author | epoch <epoch@hack.thebackupbox.net> | 2019-05-19 07:46:00 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2019-05-19 07:46:00 +0000 |
commit | 5ed56236f1ee57e71c91d356c7160aedc6e515f0 (patch) | |
tree | 552445eb1692c1b15e77528cfbbf8f22b769e388 /GNUmakefile | |
download | libidc-5ed56236f1ee57e71c91d356c7160aedc6e515f0.tar.gz libidc-5ed56236f1ee57e71c91d356c7160aedc6e515f0.zip |
it works but it is NOT pretty
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 21 |
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 |