summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: cbbbbae204f10aa1b50d3e1b4cc6c0f629795d1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 idc.h $(PREFIX)/include/idc.h