diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 10:03:13 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 10:03:13 +0100 |
commit | c2740578404b4e46d198de70af1cfd554033d99f (patch) | |
tree | bb97478f7d31251d5b1bb0013b6b06b16ca0712c /ext/nomali/Makefile | |
parent | a0cbf5541133e58968919991635797babaad2a18 (diff) | |
download | gem5-c2740578404b4e46d198de70af1cfd554033d99f.tar.xz |
ext: Add the NoMali GPU no-simulation library
Add revision 9adf9d6e2d889a483a92136c96eb8a434d360561 of NoMali-model
from https://github.com/ARM-software/nomali-model. This library
implements the register interface of the Mali T6xx/T7xx series GPUs,
but doesn't do any rendering. It can be used to hide the effects of
software rendering.
Diffstat (limited to 'ext/nomali/Makefile')
-rw-r--r-- | ext/nomali/Makefile | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ext/nomali/Makefile b/ext/nomali/Makefile new file mode 100644 index 000000000..171ce2668 --- /dev/null +++ b/ext/nomali/Makefile @@ -0,0 +1,81 @@ +# +# Copyright (c) 2014-2015 ARM Limited +# All rights reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Authors: Andreas Sandberg + +DOXYGEN = doxygen + +GCC_VERSION := $(shell $(CC) -dumpversion | sed -e 's/\.//g') +ifeq "$(shell expr $(GCC_VERSION) \< 47)" "1" +$(error Default GCC version is too old. Please use gcc 4.7 or newer.) +endif + +CPPFLAGS = -Iinclude/ +CFLAGS = -fvisibility=hidden -O1 -g -Wall +CXXFLAGS = -std=c++0x $(CFLAGS) +LDFLAGS= + +LIB_CPPFLAGS = $(CPPFLAGS) +LIB_CFLAGS = $(CFLAGS) -fPIC +LIB_CXXFLAGS = $(CXXFLAGS) -fPIC +LIB_LDFLAGS= $(LDFLAGS) -shared + +# Default targets +ALL := + +# Test targets +ALL_TESTS := + +# Dependency includes +DEPS := + +# Files/directories to remove in the clean target +CLEAN := + +all: _all + +dir:=lib +include $(dir)/Rules.mk + +dir:=tests +include $(dir)/Rules.mk + +_all: $(ALL) + +test: $(ALL_TESTS) + @set -e; \ + for T in $^ ; do \ + echo "Running $${T}"; \ + ./$${T}; \ + done + +docs: + $(DOXYGEN) Doxyfile + +depclean: + $(RM) $(DEPS) + +clean: + $(RM) -r $(CLEAN) + $(RM) -r docs/html + + +.PHONY: all _all test depclean clean docs + +# Include dependencies +-include $(MODEL_OBJS:.o=.d) +-include $(LIBMIDGARDMODEL_OBJS:.o=.d) +-include $(LIBNOMALI_OBJS:.o=.d) |