summaryrefslogtreecommitdiff
path: root/Makefile
blob: d448fa27162173d62cffdb3b7a819928eff1ba72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LDFLAGS=-lhashtable -Llibhashtable
CFLAGS=-fpic -shared -pedantic -Wall
TARGET=libhashtable.so

all: $(TARGET)

$(TARGET): libhashtable.c
	./genheader.sh
	$(CC) $(CFLAGS) -o $(TARGET) libhashtable.c

clean:
	rm -f libhashtable.so

install:
	cp $(TARGET) /usr/local/lib/$(TARGET)
	cp hashtable.h /usr/local/include/hashtable.h