summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2019-03-12 17:30:12 +0000
committerepochqwert <epoch@hacking.allowed.org>2019-03-12 17:30:12 +0000
commitbef56380e2a8aa3cd910dc75d755d5d4f6f60271 (patch)
tree96905f414a3cbc2bfed24d72ae63d2dd86724322
parent2a06696a6014824784e90095b5f679197639a715 (diff)
downloadlibirc-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--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 02f62b5..8f702b6 100644
--- a/Makefile
+++ b/Makefile
@@ -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