1#ident "@(#)powerpc-os400-gcc.rul 1.7 21/04/28 " 2########################################################################### 3# Written 1997-2018 by J. Schilling 4########################################################################### 5# 6# Platform dependent MACROS for OS400 7# 8########################################################################### 9# Copyright (c) J. Schilling 10########################################################################### 11# The contents of this file are subject to the terms of the 12# Common Development and Distribution License, Version 1.0 only 13# (the "License"). You may not use this file except in compliance 14# with the License. 15# 16# See the file CDDL.Schily.txt in this distribution for details. 17# A copy of the CDDL is also available via the Internet at 18# http://www.opensource.org/licenses/cddl1.txt 19# 20# When distributing Covered Code, include this CDDL HEADER in each 21# file and include the License file CDDL.Schily.txt from this distribution. 22########################################################################### 23include $(SRCROOT)/$(RULESDIR)/rules.prg 24########################################################################### 25include $(SRCROOT)/$(RULESDIR)/cc-$(C_ARCH).rul 26 27# 28# Make 64 bit the default 29# 30GCC_OPT= -maix64 31GCC_OPT32= -maix32 32GCC_OPT64= -maix64 33AIX_ARCH= $(GCC_OPTXX:-maix%=-X%) 34 35OSDEFS += -DPROTOTYTPES 36 37KDEFINES= -DKERNEL -D_KERNEL 38 39LIB_PREFIX= lib 40LIB_SUFFIX= .a 41SHL_SUFFIX= .so.$(DYNMAJOR).$(DYNMINOR) 42 43LIB_SOCKET= 44LIB_MATH= -lm 45LIB_KVM= 46 47#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) 48LDOPTS= $(LIBS_PATH) $(LDPATH) 49LDOPTDYN= -shared 50LNDYNLIB= $(NOECHO) 51 52RANLIB= $(NOECHO)echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib 53 54LORDER= lorder $(AIX_ARCH) 55AR= $(NOECHO)echo " ==> ARCHIVING \"$@\""; ar $(AIX_ARCH) 56