1#ident "@(#)i386-os2-gcc.rul 1.14 21/04/28 " 2########################################################################### 3# First version written 1999 by C. Wohlgemuth 4########################################################################### 5# 6# Platform dependent MACROS for OS/2 using gcc (EMX) 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 27# XXX strtod.c now does floating point conversion on OS without ?cvt(). 28# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been 29# XXX removed and printing floating numbers will work on any OS. 30# 31OSDEFS += -D__OS2 32 33# 34# Using -Zcrtdll is a hack to allow this flag to be seen 35# from configure too. 36COPTS= -Zcrtdll 37 38KDEFINES= 39 40COPTDYN= 41COPTGPROF= 42LIB_PREFIX= 43LIB_SUFFIX= .a 44SHL_SUFFIX= 45 46LIB_SOCKET= -lsocket 47LIB_MATH= 48LIB_KVM= 49 50#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%) 51LDOPTS= $(LIBS_PATH) $(LDPATH) 52 53LDOPTDYN= 54 55LDCC= $(NOECHO)echo " ==> LINKING \"$@\""; gcc -Zcrtdll 56 57LORDER= echo 58TSORT= cat 59