1#ident "@(#)bepc-haiku-gcc.rul 1.7 18/04/11 " 2########################################################################### 3# Written 1996-2018 by J. Schilling 4########################################################################### 5# 6# Platform dependent MACROS for Haiku, a BeOS like OS 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# XXX Old BeOS needs libroot.so to get [efg]cvt() 29# XXX New BeOS seems to have this in libc and in addition we include 30# XXX strtod.c for floating point conversion on OS without such code. 31# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been 32# XXX removed and printing floating numbers will work with old/new BeOS 33# 34#OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS 35OSDEFS += 36 37KDEFINES= -DKERNEL -D_KERNEL 38 39#CONFFLAGS= i586 40 41LIB_PREFIX= lib 42LIB_SUFFIX= .a 43SHL_SUFFIX= .so.$(DYNMAJOR).$(DYNMINOR) 44 45LIB_C= 46 47#LIB_SOCKET= -lsocket -lbind 48LIB_SOCKET= -lnetwork 49LIB_MATH= 50LIB_KVM= 51 52#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) 53LDOPTS= $(LIBS_PATH) $(LDPATH) 54 55LORDER= echo 56TSORT= cat 57 58LN= /bin/ln -s 59