summaryrefslogtreecommitdiffstats
path: root/edd/Makefile
blob: b49db086b91aa87873bcfe0e24e99f8a28d4a1cb (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/usr/include/python1.5# -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

depend:
	$(CPP) -M $(CFLAGS) *.c > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif