diff options
author | epochqwert <epoch@hacking.allowed.org> | 2019-03-12 17:30:12 +0000 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2019-03-12 17:30:12 +0000 |
commit | bef56380e2a8aa3cd910dc75d755d5d4f6f60271 (patch) | |
tree | 96905f414a3cbc2bfed24d72ae63d2dd86724322 | |
parent | 2a06696a6014824784e90095b5f679197639a715 (diff) | |
download | libirc-bef56380e2a8aa3cd910dc75d755d5d4f6f60271.tar.gz libirc-bef56380e2a8aa3cd910dc75d755d5d4f6f60271.zip |
fixed Makefile to use install instead of cp, to use ld instead of assuming, and optional PREFIX override.
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,6 +1,6 @@ -CFLAGS=-fpic -shared -pedantic -Wall -ggdb +CFLAGS=-fpic -shared -pedantic -Wall -g3 TARGET=libirc.so -PREFIX=/usr/local +PREFIX:=/usr/local all: libirc.so @@ -12,5 +12,7 @@ clean: rm *.o install: all - cp $(TARGET) $(PREFIX)/lib/$(TARGET) - cp irc.h $(PREFIX)/include/irc.h + mkdir -p $(PREFIX)/lib + mkdir -p $(PREFIX)/include + install $(TARGET) $(PREFIX)/lib/$(TARGET) + install irc.h $(PREFIX)/include/irc.h |