summaryrefslogtreecommitdiff
path: root/Makefile
blob: 89e9937bdc8805a5afd6d95771b94842f9d8f137 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### why the fuck is this here? LDFLAGS=-lhashtable -Llibhashtable
CFLAGS=-fpic -shared -pedantic -Wall
PREFIX=/usr/local
TARGET=libhashtable.so

all: $(TARGET)

libhashtable.h:
	./genheader.sh

$(TARGET): libhashtable.c libhashtable.h

clean:
	rm -f libhashtable.so

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

uninstall:
	rm $(PREFIX)/lib/$(TARGET)
	rm $(PREFIX)/include/hashtable.h