Merge branch '7.8'
[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_emulate_branches.c \
12 radeon_program.c \
13 radeon_program_print.c \
14 radeon_opcodes.c \
15 radeon_program_alu.c \
16 radeon_program_pair.c \
17 radeon_program_tex.c \
18 radeon_pair_translate.c \
19 radeon_pair_schedule.c \
20 radeon_pair_regalloc.c \
21 radeon_dataflow.c \
22 radeon_dataflow_deadcode.c \
23 radeon_dataflow_swizzles.c \
24 r3xx_fragprog.c \
25 r300_fragprog.c \
26 r300_fragprog_swizzle.c \
27 r300_fragprog_emit.c \
28 r500_fragprog.c \
29 r500_fragprog_emit.c \
30 r3xx_vertprog.c \
31 r3xx_vertprog_dump.c \
32 \
33 memory_pool.c
34
35
36 ### Basic defines ###
37
38 OBJECTS = $(C_SOURCES:.c=.o) \
39 $(CPP_SOURCES:.cpp=.o) \
40 $(ASM_SOURCES:.S=.o)
41
42 INCLUDES = \
43 -I. \
44 -I$(TOP)/include \
45 -I$(TOP)/src/mesa \
46
47
48 ##### TARGETS #####
49
50 default: depend lib$(LIBNAME).a
51
52 lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/configs/current
53 $(MKLIB) -o $(LIBNAME) -static $(OBJECTS)
54
55 depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
56 rm -f depend
57 touch depend
58 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) 2> /dev/null
59
60 # Emacs tags
61 tags:
62 etags `find . -name \*.[ch]` `find ../include`
63
64 # Remove .o and backup files
65 clean:
66 rm -f $(OBJECTS) lib$(LIBNAME).a depend depend.bak
67
68 # Dummy target
69 install:
70 @echo -n ""
71
72 ##### RULES #####
73
74 .c.o:
75 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
76
77 .cpp.o:
78 $(CXX) -c $(INCLUDES) $(CXXFLAGS) $(LIBRARY_DEFINES) $< -o $@
79
80 .S.o:
81 $(CC) -c $(INCLUDES) $(CFLAGS) $(LIBRARY_DEFINES) $< -o $@
82
83
84 sinclude depend