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

all: $(TARGET)

$(TARGET):
	$(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