1 | # |
---|
2 | # $Id: Makefile 117 2009-05-16 14:42:39Z 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)/176.gcc_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/176.gcc/src/*.c))))) \ |
---|
38 | # $(addprefix $(DIR_OBJ)/181.mcf_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/181.mcf/src/*.c))))) \ |
---|
39 | # $(addprefix $(DIR_OBJ)/255.vortex_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/255.vortex/src/*.c))))) \ |
---|
40 | # $(addprefix $(DIR_OBJ)/256.bzip2_, $(addsuffix .o, $(basename $(notdir $(wildcard $(SPECINT2000_PATH)/256.bzip2/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 | -DSPEC_CPU2000 \ |
---|
58 | -DWANT_STDC_PROTO |
---|
59 | |
---|
60 | #-----[ Files ]------------------------------------------------------------------- |
---|
61 | OBJECTS = $(NEWLIB)/lib/*.o \ |
---|
62 | $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s)) \ |
---|
63 | $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s)) \ |
---|
64 | $(patsubst $(DIR_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_C)/*.c)) \ |
---|
65 | $(SPECINT2000_OBJECTS) |
---|
66 | |
---|
67 | vpath %.h $(SPECINT2000_PATH_INC) |
---|
68 | # vpath %.c $(SPECINT2000_PATH_SRC) |
---|
69 | |
---|
70 | include $(DIR_SOFT)/Makefile.Software |
---|
71 | |
---|
72 | $(DIR_OBJ)/164.gzip_%.o : $(SPECINT2000_PATH)/164.gzip/src/%.c |
---|
73 | @\ |
---|
74 | $(ECHO) "Compilation : $*.c"; \ |
---|
75 | $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
76 | |
---|
77 | # $(DIR_OBJ)/175.vpr_%.o : $(SPECINT2000_PATH)/175.vpr/src/%.c |
---|
78 | # @\ |
---|
79 | # $(ECHO) "Compilation : $*.c"; \ |
---|
80 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
81 | |
---|
82 | # $(DIR_OBJ)/176.gcc_%.o : $(SPECINT2000_PATH)/176.gcc/src/%.c |
---|
83 | # @\ |
---|
84 | # $(ECHO) "Compilation : $*.c"; \ |
---|
85 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
86 | |
---|
87 | # $(DIR_OBJ)/181.mcf_%.o : $(SPECINT2000_PATH)/181.mcf/src/%.c |
---|
88 | # @\ |
---|
89 | # $(ECHO) "Compilation : $*.c"; \ |
---|
90 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
91 | |
---|
92 | # $(DIR_OBJ)/255.vortex_%.o : $(SPECINT2000_PATH)/255.vortex/src/%.c |
---|
93 | # @\ |
---|
94 | # $(ECHO) "Compilation : $*.c"; \ |
---|
95 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
96 | |
---|
97 | # $(DIR_OBJ)/256.bzip2_%.o : $(SPECINT2000_PATH)/256.bzip2/src/%.c |
---|
98 | # @\ |
---|
99 | # $(ECHO) "Compilation : $*.c"; \ |
---|
100 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|
101 | |
---|
102 | # $(DIR_OBJ)/300.twolf_%.o : $(SPECINT2000_PATH)/300.twolf/src/%.c |
---|
103 | # @\ |
---|
104 | # $(ECHO) "Compilation : $*.c"; \ |
---|
105 | # $(OR32_CC) $(OR32_CC_OPT) -o $@ -c $^ ; |
---|