summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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