summaryrefslogtreecommitdiff
path: root/hash/Makefile
blob: 0d897d0de6a8f453c7bbdf3b428582d39e08f5e2 (plain)
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
CC=gcc
CFLAGS=
CPP=g++
CPPFLAGS=
LD=gcc
LDFLAGS=-shared

OBJECTS=hash_wrapper.o hash.o crc32.o ed2k.o
TARGET=_hash.so
INCLUDE=-I /usr/include/python2.4/
LIB=-l boost_python -l ssl

all: $(TARGET)

clean:
	-rm $(TARGET) $(OBJECTS)

# Mål-regel
$(TARGET): $(OBJECTS) Makefile
	$(LD) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIB)

# Pseudoregler
%.o: %.c Makefile
	$(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE)

%.o: %.cpp Makefile
	$(CPP) $(CPPFLAGS) -o $@ -c $< $(INCLUDE)