summaryrefslogtreecommitdiffstats
path: root/edd/Makefile
blob: 320b99e3257a8298ef732126b3c6fad846686ff8 (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
36
include ../Makefile.inc

CFLAGS=-Wall -O -g -fpic -I/usr/include/python1.5# -DDEBUG

libedd.a(edd.o lrmi.o)
TARGETS=eddmodule.so 

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