From 2a06696a6014824784e90095b5f679197639a715 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Sat, 29 Dec 2018 21:36:41 +0000 Subject: changed recv to read and stuff --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3