r300/compiler: Handle loops in rc_get_readers()
[mesa.git] / src / mesa / drivers / dri / r300 / compiler / Makefile
1 # src/mesa/drivers/dri/r300/compiler/Makefile
2
3 TOP = ../../../../../..
4 include $(TOP)/configs/current
5
6 LIBNAME = r300compiler
7
8 C_SOURCES = \
9 radeon_code.c \
10 radeon_compiler.c \
11 radeon_compiler_util.c \
12 radeon_emulate_branches.c \
13 radeon_emulate_loops.c \
14 radeon_program.c \
15 radeon_program_print.c \
16 radeon_opcodes.c \
17 radeon_program_alu.c \
18 radeon_program_pair.c \
19 radeon_program_tex.c \
20 radeon_pair_translate.c \
21 radeon_pair_schedule.c \
22 radeon_pair_regalloc.c \
23 radeon_pair_dead_sources.c \
24 radeon_dataflow.c \
25 radeon_dataflow_deadcode.c \
26 radeon_dataflow_swizzles.c \
27 radeon_list.c \
28 radeon_optimize.c \
29 radeon_remove_constants.c \
30 radeon_rename_regs.c \
31 radeon_variable.c \
32 r3xx_fragprog.c \
33 r300_fragprog.c \
34 r300_fragprog_swizzle.c \
35 r300_fragprog_emit.c \
36 r500_fragprog.c \
37 r500_fragprog_emit.c \
38 r3xx_vertprog.c \
39 r3xx_vertprog_dump.c \
40 \
41 memory_pool.c
42
43
44 ### Basic defines ###
45
46 OBJECTS = $(C_SOURCES:.c=.o) \
47 $(CPP_SOURCES:.cpp=.o) \
48 $(ASM_SOURCES:.S=.o)
49
50 INCLUDES = \
51 -I. \
52 -I$(TOP)/include \
53 -I$(TOP)/src/mesa \
54 -I$(TOP)/src/glsl \
55
56
57 ##### TARGETS #####
58
59 default: depend lib$(LIBNAME).a
60
61 lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/configs/current
62 $(MKLIB) -o $(LIBNAME) -static $(OBJECTS)
63
64 depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
65 rm -f depend
66 touch depend
67 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) 2> /dev/null
68
69 # Emacs tags
70 tags:
71 etags `find . -name \*.[ch]` `find ../include`
72
73 # Remove .o and backup files
74 clean:
75 rm -f $(OBJECTS) lib$(LIBNAME).a depend depend.bak
76
77 # Dummy target
78 install:
79 @echo -n ""
80
81 ##### RULES #####
82
83 .c.o:
84 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
85
86 .cpp.o:
87 $(CXX) -c $(INCLUDES) $(CXXFLAGS) $(LIBRARY_DEFINES) $< -o $@
88
89 .S.o:
90 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
91
92
93 sinclude depend