summaryrefslogtreecommitdiff
path: root/Makefile
blob: 33ac6e8974349d54b6c7c1f41324d4c08c7f2408 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PREFIX:=/usr/local
CFLAGS=-fpic -shared -pedantic -Wall -g3 -I$(PREFIX)/include
TARGET=libirc.so

all: libirc.so

$(TARGET): libirc.o
	ld -shared -o $(TARGET) libirc.o

clean:
	rm -f $(TARGET)
	rm *.o

install: all
	mkdir -p $(PREFIX)/lib
	mkdir -p $(PREFIX)/include
	install $(TARGET) $(PREFIX)/lib/$(TARGET)
	install irc.h $(PREFIX)/include/irc.h