summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 12237abf42fc086091313d3b1775ad871fbc6d3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CFLAGS=-fpic -shared -pedantic -Wall -g3
TARGET=libline.so
PREFIX:=/usr/local

all: libline.so ircify

ircify: LDLIBS=-Lline
ircify: ircify.c

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

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

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