blob: 9b86af1f2048b83d951ccb2af594c8ffe0f7cf13 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
### why the fuck is this here? LDFLAGS=-lhashtable -Llibhashtable
CFLAGS=-pedantic -Wall -g3
PREFIX:=/usr/local
TARGET=libhashtable.so
all: $(TARGET)
libhashtable.h:
./genheader.sh
$(TARGET): CFLAGS+=-fpic -shared
$(TARGET): libhashtable.o
ld -shared -o $(TARGET) libhashtable.o
clean:
rm -f libhashtable.so
rm *.o
install: all
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/include
install $(TARGET) $(PREFIX)/lib/$(TARGET)
install hashtable.h $(PREFIX)/include/hashtable.h
uninstall:
rm $(PREFIX)/lib/$(TARGET)
rm $(PREFIX)/include/hashtable.h
|