summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2018-12-29 21:36:41 +0000
committerepochqwert <epoch@hacking.allowed.org>2018-12-29 21:36:41 +0000
commit2a06696a6014824784e90095b5f679197639a715 (patch)
treee19d4c9cb404cd53b0cb98489f92f3717226e4df /Makefile
parentf34863dddcb3c7edfb1ca34a40ee921b6c34aada (diff)
downloadlibirc-2a06696a6014824784e90095b5f679197639a715.tar.gz
libirc-2a06696a6014824784e90095b5f679197639a715.zip
changed recv to read and stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a9e24d1..02f62b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,16 @@
-LDFLAGS=-lirc -Llibirc
-CFLAGS=-fpic -shared -pedantic -Wall
+CFLAGS=-fpic -shared -pedantic -Wall -ggdb
TARGET=libirc.so
+PREFIX=/usr/local
-all: libirc.c
- $(CC) $(CFLAGS) -o $(TARGET) libirc.c
+all: libirc.so
+
+$(TARGET): libirc.o
+ ld -shared -o $(TARGET) libirc.o
clean:
- rm -f libirc.so
+ rm -f $(TARGET)
+ rm *.o
install: all
- cp $(TARGET) /usr/local/lib/$(TARGET)
- cp irc.h /usr/local/include/irc.h
+ cp $(TARGET) $(PREFIX)/lib/$(TARGET)
+ cp irc.h $(PREFIX)/include/irc.h