summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9b41506bb24b7d9fc7744a57dd9019837cc16581 (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):
	./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