blob: 6add37b1df9ead7ebc4e0390e4571d859e181f85 (
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
28
29
30
31
32
33
34
35
|
include ../Makefile.inc
CFLAGS=-Wall -O -g -fpic -I$(PYTHONINCLUDE)# -DDEBUG
TARGETS=eddmodule.so libedd.a(edd.o lrmi.o)
ifeq (.depend,$(wildcard .depend))
TARGET=all
else
TARGET=depend all
endif
everything: $(TARGET)
all: $(TARGETS)
install: all
install eddmodule.so $(DESTDIR)/$(PYTHONLIBDIR)
edd: lrmi.c edd.c
gcc -DDEBUG -o edd lrmi.c edd.c
eddmodule.so: pyedd.c edd.o lrmi.o
gcc -c -o pyedd.o -fpic pyedd.c $(CFLAGS)
gcc -shared -g -o $@ pyedd.o edd.o lrmi.o
clean:
rm -f *.o *.so *~ core *.a
depend:
$(CPP) -M $(CFLAGS) *.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
|