1#ident @(#)atarist-freemint-gcc.rul 1.5 21/04/28 2########################################################################### 3# Written 2008 by Y. Doyeux 4########################################################################### 5# 6# Platform dependent MACROS for FreeMiNT on ATARI computers 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-gcc.rul 26 27OSDEFS += -DNO_USER_XCVT 28 29KDEFINES= -DKERNEL -D_KERNEL 30 31#COPTDYN= -fpic 32COPTDYN= 33 34LIB_PREFIX= lib 35LIB_SUFFIX= .a 36#SHL_SUFFIX= .so.1.0 37SHL_SUFFIX= 38 39LIB_SOCKET= -lsocket 40LIB_MATH= -lm 41LIB_KVM= 42 43_STACKSIZE= $(_UNIQ)$(STACKSIZE) 44__STACKSIZE= $(_STACKSIZE:$(_UNIQ)=0x10000) # Default stack size 64kB 45STACK_SIZE= $(__STACKSIZE:$(_UNIQ)%=%) 46 47LDLIBS= $(LIBS) $(LIBX) && stack -S $(STACK_SIZE) $@ # Hack to set stack size 48 49#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) 50LDOPTS= $(LIBS_PATH) $(LDPATH) 51#LDOPTDYN= -shared -Wl,-soname,$(TARGET) 52#LNDYNLIB= $(NOECHO)$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so 53LDOPTDYN= 54LNDYNLIB= 55 56# 57# ranlib does not work and is not needed 58# 59#RANLIB= $(NOECHO)echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib 60 61LORDER= echo 62