blob: 3daf04ca4a8f021499bac80d94b226c369557b96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
CFLAGS=-fpic -shared -pedantic -Wall -g3
TARGET=libidc.so
PREFIX:=/usr/local
all: libidc.so ircify
ircify: LDLIBS=-lidc -L.
ircify: CFLAGS=-g3 -Wall -pedantic
ircify: ircify.c
$(TARGET): libidc.o
ld -shared -o $(TARGET) libidc.o
clean:
rm -f $(TARGET) ircify
rm *.o
install: all
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/include
install $(TARGET) $(PREFIX)/lib/$(TARGET)
install ircify $(PREFIX)/bin/ircify
install idc.h $(PREFIX)/include/idc.h
|