Makefile revision 92617aeac109481258f0c3863d09c1b8903d438b
1LIBRARY_INCLUDES = -Id3d10app -Id3d11app -I../gd3dapi  -I../d3dapi -I../w32api
2LIBS= \
3	../dxgi/libdxgi.a \
4	../gd3d1x/libgd3d1x.a \
5	../d3d1xshader/libd3d1xshader.a \
6	../d3d1xstutil/libd3d1xstutil.a \
7	../../egl/libegl.a \
8	../../../auxiliary/libgallium.a \
9	../../../winsys/sw/wrapper/libwsw.a \
10	../../../winsys/sw/xlib/libws_xlib.a \
11	../../../winsys/sw/dri/libswdri.a \
12	../../../winsys/sw/fbdev/libfbdev.a \
13	../../../../../lib/libEGL.so
14LIBS_D3D10 = ../dxgid3d10/libdxgid3d10.a ../gd3d10/libgd3d10.a $(LIBS)
15LIBS_D3D11 = ../dxgid3d11/libdxgid3d11.a ../gd3d11/libgd3d11.a $(LIBS)
16LDADD=-lGL -lXext -lXfixes -lX11 -ldrm -ldl
17
18all: bin/d3d10tri bin/d3d11tri bin/d3d11tex bin/d3d11gears
19include ../Makefile.inc
20
21bin/d3d10tri: d3d10app/d3d10x11main.o d3d10tri/d3d10tri.o $(LIBS_D3D10)
22	$(CXX) $(LDFLAGS) $(filter %.o,$^) -o $@ -Wl,--start-group  $(LIBS_D3D10) -Wl,--end-group $(LDADD)
23
24bin/d3d11tri: d3d11app/d3d11x11main.o d3d11tri/d3d11tri.o $(LIBS_D3D11)
25	$(CXX) $(LDFLAGS) $(filter %.o,$^) -o $@ -Wl,--start-group  $(LIBS_D3D11) -Wl,--end-group $(LDADD)
26
27bin/d3d11tex: d3d11app/d3d11x11main.o d3d11tex/d3d11tex.o $(LIBS_D3D11)
28	$(CXX) $(LDFLAGS) $(filter %.o,$^) -o $@ -Wl,--start-group  $(LIBS_D3D11) -Wl,--end-group $(LDADD)
29
30bin/d3d11gears: d3d11app/d3d11x11main.o d3d11gears/d3d11gears.o $(LIBS_D3D11)
31	$(CXX) $(LDFLAGS) $(filter %.o,$^) -o $@ -Wl,--start-group  $(LIBS_D3D11) -Wl,--end-group $(LDADD)
32
33