summaryrefslogtreecommitdiffstats
path: root/src/ssx/ppc32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssx/ppc32/Makefile')
-rw-r--r--[-rwxr-xr-x]src/ssx/ppc32/Makefile54
1 files changed, 34 insertions, 20 deletions
diff --git a/src/ssx/ppc32/Makefile b/src/ssx/ppc32/Makefile
index 81776dd..67541ac 100755..100644
--- a/src/ssx/ppc32/Makefile
+++ b/src/ssx/ppc32/Makefile
@@ -1,30 +1,44 @@
-# $Id: Makefile,v 1.2 2013/12/12 16:12:37 bcbrock Exp $
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/ssx/ppc32/Makefile $
+#
+# OpenPOWER OnChipController Project
+#
+# Contributors Listed Below - COPYRIGHT 2014,2015
+# [+] International Business Machines Corp.
+#
+#
+# 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.
+#
+# IBM_PROLOG_END_TAG
# This Makefile is designed to be invoked with the -I argument set to
-# the location of the "ssx.mk" for the build.
+# the location of the "img_defs.mk" for the build.
#
-# This makefile creates the libppc32.a library.
-
-SSX = ..
-PGP = $(SSX)/pgp
-
-include $(PGP)/ssx.mk
+include img_defs.mk
include ssxppc32files.mk
+OBJS := $(addprefix $(OBJDIR)/, $(PPC32_OBJECTS))
+all: $(OBJS)
-libppc32.a: ${PPC32_OBJECTS}
- $(AR) crs libppc32.a ${PPC32_OBJECTS}
+$(OBJS) $(OBJS:.o=.d): | $(OBJDIR)
-.PHONY : clean
-clean:
- rm -f *.o *.a *.d *.d.*
-
-
-# This clause prevents the dependencies from creating errors during a clean.
-# Whenever a header file is added or deleted it will likely be necessary to
-# 'make clean' to force recomputation of dependencies.
+$(OBJDIR):
+ mkdir -p $(OBJDIR)
ifneq ($(MAKECMDGOALS),clean)
-include $(PPC32_OBJECTS:.o=.d)
-endif \ No newline at end of file
+include $(OBJS:.o=.d)
+endif
+
OpenPOWER on IntegriCloud