summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: fc8701d4ed5147b5170c0b14bddf440f2ef436b6 (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
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