Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Makefile | |
4 | # Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
5 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. | |
6 | # | |
7 | # The above named program is free software; you can redistribute it and/or | |
8 | # modify it under the terms of the GNU General Public | |
9 | # License version 2 as published by the Free Software Foundation. | |
10 | # | |
11 | # The above named program is distributed in the hope that it will be | |
12 | # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public | |
17 | # License along with this work; if not, write to the Free Software | |
18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | # | |
20 | # ========== Copyright Header End ============================================ | |
21 | # | |
22 | # Copyright 2007 Sun Microsystems, Inc. All rights reserved. | |
23 | # Use is subject to license terms. | |
24 | # | |
25 | ||
26 | TOP = ../.. | |
27 | ||
28 | include $(TOP)/Makefile.common | |
29 | ||
30 | ||
31 | CPPFLAGS += -I$(XILINX_TOP)/include | |
32 | STAND_ALONE_CPPFLAGS = -DT1_FPGA_STAND_ALONE | |
33 | ||
34 | ||
35 | CONFIGS = 1c1t 1c4t 2c1t 2c4t | |
36 | ||
37 | DBIN_CFGS = $(CONFIGS:%=%-guest.md) | |
38 | DTXT_CFGS = $(CONFIGS:%=%-guest.txt) | |
39 | HBIN_CFGS = $(CONFIGS:%=%-hv.md) | |
40 | HTXT_CFGS = $(CONFIGS:%=%-hv.txt) | |
41 | HV_PP_CFGS = $(CONFIGS:%=%-hv.pp) | |
42 | ||
43 | ||
44 | OBP_HBIN_CFGS = $(CONFIGS:%=%-obp-hv.md) | |
45 | ||
46 | ||
47 | all install :: $(DBIN_CFGS) $(DTXT_CFGS) $(HBIN_CFGS) $(OBP_HBIN_CFGS) $(HTXT_CFGS) | |
48 | ||
49 | %-guest.pp: %_guest.desc | |
50 | $(CPP) $(CPPFLAGS) $< $@ | |
51 | ||
52 | %-hv.pp: %_hv.desc | |
53 | $(CPP) $(CPPFLAGS) $(STAND_ALONE_CPPFLAGS) $< $@ | |
54 | ||
55 | %-obp-hv.pp: %_hv.desc | |
56 | $(CPP) $(CPPFLAGS) $< $@ | |
57 | ||
58 | %-guest.md: %-guest.pp | |
59 | $(MDGEN) --binary $(VERBOSE) --outfile $@ $< | |
60 | ||
61 | %-guest.txt: %-guest.pp | |
62 | $(MDGEN) --text --outfile $@ $< | |
63 | ||
64 | %-hv.md: %-hv.pp | |
65 | $(MDGEN) --binary $(VERBOSE) --outfile $@ $< | |
66 | ||
67 | %-obp-hv.md: %-obp-hv.pp | |
68 | $(MDGEN) --binary $(VERBOSE) --outfile $@ $< | |
69 | ||
70 | %-hv.txt: %-hv.pp | |
71 | $(MDGEN) --text --outfile $@ $< | |
72 | ||
73 | clean :: | |
74 | $(RM) *.pp $(HTXT_CFGS) $(DTXT_CFGS) | |
75 | ||
76 | clobber :: clean | |
77 | $(RM) $(HBIN_CFGS) $(OBP_HBIN_CFGS) $(DBIN_CFGS) | |
78 | ||
79 | .KEEP_STATE: |