1 | # |
---|
2 | # $Id: Makefile 119 2009-05-25 17:40:26Z rosiere $ |
---|
3 | # |
---|
4 | # [ Description ] |
---|
5 | # |
---|
6 | # Makefile |
---|
7 | # |
---|
8 | |
---|
9 | # common definition |
---|
10 | SPECINT2000_PATH = /users/cao/kane/Project/SPEC_CPU2000/benchspec/CINT2000 |
---|
11 | SPECINT2000_PATHS = $(SPECINT2000_PATH)/164.gzip \ |
---|
12 | $(SPECINT2000_PATH)/175.vpr \ |
---|
13 | $(SPECINT2000_PATH)/176.gcc \ |
---|
14 | $(SPECINT2000_PATH)/181.mcf \ |
---|
15 | $(SPECINT2000_PATH)/255.vortex\ |
---|
16 | $(SPECINT2000_PATH)/256.bzip2 \ |
---|
17 | $(SPECINT2000_PATH)/300.twolf |
---|
18 | |
---|
19 | # $(SPECINT2000_PATH)/164.gzip |
---|
20 | # $(SPECINT2000_PATH)/175.vpr |
---|
21 | # $(SPECINT2000_PATH)/176.gcc |
---|
22 | # $(SPECINT2000_PATH)/181.mcf |
---|
23 | # $(SPECINT2000_PATH)/186.crafty |
---|
24 | # $(SPECINT2000_PATH)/197.parser |
---|
25 | # $(SPECINT2000_PATH)/252.eon |
---|
26 | # $(SPECINT2000_PATH)/253.perlbmk |
---|
27 | # $(SPECINT2000_PATH)/254.gap |
---|
28 | # $(SPECINT2000_PATH)/255.vortex |
---|
29 | # $(SPECINT2000_PATH)/256.bzip2 |
---|
30 | # $(SPECINT2000_PATH)/300.twolf |
---|
31 | |
---|
32 | SPECINT2000_PATH_INC = $(addprefix -I, $(addsuffix /src, $(SPECINT2000_PATHS))) |
---|
33 | SPECINT2000_PATH_SRC = $(wildcard $(addsuffix /src , $(SPECINT2000_PATHS))) |
---|
34 | SPECINT2000_OBJECTS = $(addprefix $(DIR_OBJ)/164.gzip_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/164.gzip/src/*.c)))))\ |
---|
35 | |
---|
36 | # $(addprefix $(DIR_OBJ)/175.vpr_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/175.vpr/src/*.c)))))\ |
---|
37 | # $(addprefix $(DIR_OBJ)/181.mcf_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/181.mcf/src/*.c))))) \ |
---|
38 | # $(addprefix $(DIR_OBJ)/256.bzip2_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/256.bzip2/src/*.c))))) \ |
---|
39 | # $(addprefix $(DIR_OBJ)/176.gcc_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/176.gcc/src/*.c))))) |
---|
40 | # $(addprefix $(DIR_OBJ)/255.vortex_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/255.vortex/src/*.c))))) \ |
---|
41 | # $(addprefix $(DIR_OBJ)/300.twolf_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/300.twolf/src/*.c))))) |
---|
42 | |
---|
43 | DIR_SOFT = .. |
---|
44 | |
---|
45 | DIR_SRC = ./src |
---|
46 | DIR_C = $(DIR_SRC)/c |
---|
47 | DIR_ASM = $(DIR_SRC)/asm |
---|
48 | DIR_SYS = $(DIR_SRC)/sys |
---|
49 | DIR_INC = $(DIR_SRC)/include |
---|
50 | DIR_LDSCRIPT = $(NEWLIB)/lib/ |
---|
51 | |
---|
52 | INCDIR = $(NEWLIB_INCDIR) -I$(DIR_INC) $(SPECINT2000_PATH_INC) |
---|
53 | LIBDIR = $(NEWLIB_LIBDIR) |
---|
54 | LIBNAME = $(NEWLIB_LIBNAME) |
---|
55 | |
---|
56 | FLAGS = -DSPECINT2000_PATH=\"$(SPECINT2000_PATH)\" |
---|
57 | FLAGS_164.gzip = |
---|
58 | FLAGS_175.vpr = -DSPEC_CPU2000 |
---|
59 | FLAGS_176.gcc = |
---|
60 | FLAGS_181.mcf = -DWANT_STDC_PROTO |
---|
61 | FLAGS_186.crafty = |
---|
62 | FLAGS_197.parser = |
---|
63 | FLAGS_252.eon = |
---|
64 | FLAGS_253.perlbmk = |
---|
65 | FLAGS_254.gap = |
---|
66 | FLAGS_255.vortex = |
---|
67 | FLAGS_256.bzip2 = -DWANT_STDC_PROTO |
---|
68 | FLAGS_300.twolf = -DSPEC_CPU2000 |
---|
69 | |
---|
70 | #-----[ Files ]------------------------------------------------------------------- |
---|
71 | OBJECTS = $(NEWLIB)/lib/*.o \ |
---|
72 | $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s)) \ |
---|
73 | $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s)) \ |
---|
74 | $(patsubst $(DIR_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_C)/*.c)) \ |
---|
75 | $(SPECINT2000_OBJECTS) |
---|
76 | |
---|
77 | vpath %.h $(SPECINT2000_PATH_INC) |
---|
78 | # vpath %.c $(SPECINT2000_PATH_SRC) |
---|
79 | |
---|
80 | include $(DIR_SOFT)/Makefile.Software |
---|
81 | |
---|
82 | $(DIR_OBJ)/164.gzip_%.o : $(SPECINT2000_PATH)/164.gzip/src/%.c |
---|
83 | @\ |
---|
84 | $(ECHO) "Compilation : $*.c"; \ |
---|
85 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_164.gzip) -o $@ -c $^ ; |
---|
86 | |
---|
87 | $(DIR_OBJ)/175.vpr_%.o : $(SPECINT2000_PATH)/175.vpr/src/%.c |
---|
88 | @\ |
---|
89 | $(ECHO) "Compilation : $*.c"; \ |
---|
90 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_175.vpr) -o $@ -c $^ ; |
---|
91 | |
---|
92 | $(DIR_OBJ)/176.gcc_%.o : $(SPECINT2000_PATH)/176.gcc/src/%.c |
---|
93 | @\ |
---|
94 | $(ECHO) "Compilation : $*.c"; \ |
---|
95 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_176.gcc) -o $@ -c $^ ; |
---|
96 | |
---|
97 | $(DIR_OBJ)/181.mcf_%.o : $(SPECINT2000_PATH)/181.mcf/src/%.c |
---|
98 | @\ |
---|
99 | $(ECHO) "Compilation : $*.c"; \ |
---|
100 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_181.mcf) -o $@ -c $^ ; |
---|
101 | |
---|
102 | $(DIR_OBJ)/255.vortex_%.o : $(SPECINT2000_PATH)/255.vortex/src/%.c |
---|
103 | @\ |
---|
104 | $(ECHO) "Compilation : $*.c"; \ |
---|
105 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_255.vortex) -o $@ -c $^ ; |
---|
106 | |
---|
107 | $(DIR_OBJ)/256.bzip2_%.o : $(SPECINT2000_PATH)/256.bzip2/src/%.c |
---|
108 | @\ |
---|
109 | $(ECHO) "Compilation : $*.c"; \ |
---|
110 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_256.bzip2) -o $@ -c $^ ; |
---|
111 | |
---|
112 | $(DIR_OBJ)/300.twolf_%.o : $(SPECINT2000_PATH)/300.twolf/src/%.c |
---|
113 | @\ |
---|
114 | $(ECHO) "Compilation : $*.c"; \ |
---|
115 | $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_300.twolf) -o $@ -c $^ ; |
---|