Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / rst / rstzip3 / rstzip_v2 / Makefile
CommitLineData
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# Makefile for rst/rstzip/rstzip_v2
22
23include ../../Makefile.master
24
25TOP_DIR = ../..
26
27INCLUDES += -I../../.. -I/import/archperf/include -I/import/shade/v6/latest-$(HOST3264)/inc
28
29TARG = librstzip_v2.o
30
31$(TARG)-32g: $(TARG)
32$(TARG)-32opt: $(TARG)
33$(TARG)-64g: $(TARG)
34$(TARG)-64opt: $(TARG)
35$(TARG)-amd64: $(TARG)
36
37# CFILES = cpuid.c printhex.c rstzip2c.c
38# CCFILES = diffrst.C mpsort.C rstzip2.C rstzip2if.C
39# OBJS = $(CCFILES:%.C=%.o) $(CFILES:%.c=%.o)
40
41CFILES = rstzip2if.C cpuid.c
42HFILES = buffer.H cpuid.h footer.H hash.H header.H mpsort.H pstate.H rstzip2if.H rstzip.H rstzipif.H VCache.h
43ALLSRCS = $(CFILES) $(HFILES)
44OBJS = rstzip2if.o cpuid.o
45$(TARG): $(OBJS)
46 $(LD) -r -o $@ $(OBJS)
47
48
4932g 32opt 64g 64opt amd64: setup
50 cd $(BUILDTAG); $(MAKE) -f ../Makefile $(TARG)-$(BUILDTAG) ; cd ..
51
52clean:
53 -rm -rf $(OBJS) $(TARG) 32g 32opt 64g 64opt amd64
54
55setup: FRC
56 @echo rstzip_v2: making setup...
57 @for a in 32g 32opt 64g 64opt amd64; do \
58 if test -d $$a; then true; else mkdir $$a; fi; \
59 for f in $(ALLSRCS); do if test -L $$a/$$f; then unlink $$a/$$f; fi; ln -s ../$$f $$a/$$f; done \
60 done
61FRC:
62
63
64.KEEP_STATE: