aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tools/trace/Makefile
blob: 822e466ad1b517afa9b20e38fea6cc65d50f7583 (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
# Makefile for Thomas Sondergaard's API tracer

TOP = ../../..

include $(TOP)/configs/current


OBJECTS = gltrace.o gltrace_support.o

TRACER = gltrace.so

.cc.o:
	$(CXX) -c $(INCDIRS) $(CXXFLAGS) $< -o $@


default: $(TRACER)

$(TRACER): $(OBJECTS)
	$(MKLIB) -o $(TRACER) -noprefix -cplusplus -linker '$(CXX)' \
		-ldflags '$(LDFLAGS)' $(MKLIB_OPTIONS) $(OBJECTS)

gltrace.cc: gltrace.py
	PYTHONPATH=$(TOP)/src/mesa/glapi python gltrace.py -f $(TOP)/src/mesa/glapi/gl_API.xml  > gltrace.cc


clean:
	rm -f $(OBJECTS)
	rm -f $(TRACER)
	rm -f *~
	rm -f gltrace.cc