r300/compiler: make lowering passes possibly use up to two less temps
[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_dataflow.c \
24 radeon_dataflow_deadcode.c \
25 radeon_dataflow_swizzles.c \
26 radeon_optimize.c \
27 radeon_remove_constants.c \
28 radeon_rename_regs.c \
29 r3xx_fragprog.c \
30 r300_fragprog.c \
31 r300_fragprog_swizzle.c \
32 r300_fragprog_emit.c \
33 r500_fragprog.c \
34 r500_fragprog_emit.c \
35 r3xx_vertprog.c \
36 r3xx_vertprog_dump.c \
37 \
38 memory_pool.c
39
40
41 ### Basic defines ###
42
43 OBJECTS = $(C_SOURCES:.c=.o) \
44 $(CPP_SOURCES:.cpp=.o) \
45 $(ASM_SOURCES:.S=.o)
46
47 INCLUDES = \
48 -I. \
49 -I$(TOP)/include \
50 -I$(TOP)/src/mesa \
51
52
53 ##### TARGETS #####
54
55 default: depend lib$(LIBNAME).a
56
57 lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/configs/current
58 $(MKLIB) -o $(LIBNAME) -static $(OBJECTS)
59
60 depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
61 rm -f depend
62 touch depend
63 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) 2> /dev/null
64
65 # Emacs tags
66 tags:
67 etags `find . -name \*.[ch]` `find ../include`
68
69 # Remove .o and backup files
70 clean:
71 rm -f $(OBJECTS) lib$(LIBNAME).a depend depend.bak
72
73 # Dummy target
74 install:
75 @echo -n ""
76
77 ##### RULES #####
78
79 .c.o:
80 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
81
82 .cpp.o:
83 $(CXX) -c $(INCLUDES) $(CXXFLAGS) $(LIBRARY_DEFINES) $< -o $@
84
85 .S.o:
86 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
87
88
89 sinclude depend