diff options
author | zyp <zyp@localhost> | 2006-05-08 14:54:40 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-05-08 14:54:40 +0200 |
commit | 3a5b32f44a95b989e39273527fc924ad3d32465e (patch) | |
tree | ad977e8cdaf459f5a8b0c08f120a8ed604b5f561 /Makefile |
[project @ zyp-20060508125440-a3cc6ea65de180a0]
[project @ 23]
Seperated from disccat to a standalone project.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0d897d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,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)
\ No newline at end of file |