1#ident "@(#)i386-bsd-os-cc.rul 1.4 02/10/15 " 2########################################################################### 3# Written 1998 by J. Schilling 4########################################################################### 5# 6# Platform dependent MACROS for BSD/OS 7# 8########################################################################### 9# This program is free software; you can redistribute it and/or modify 10# it under the terms of the GNU General Public License as published by 11# the Free Software Foundation; either version 2, or (at your option) 12# any later version. 13# 14# This program is distributed in the hope that it will be useful, 15# but WITHOUT ANY WARRANTY; without even the implied warranty of 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# GNU General Public License for more details. 18# 19# You should have received a copy of the GNU General Public License 20# along with this program; see the file COPYING. If not, write to 21# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22########################################################################### 23include $(SRCROOT)/$(RULESDIR)/rules.prg 24########################################################################### 25 26CPPFLAGS= $(CPPOPTS) $(CPPOPTX) 27CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX) 28 29CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(OSDEFS) 30COPTS= 31CWOPTS= -Wall -Wtraditional \ 32 -Wshadow -Wmissing-prototypes -Wstrict-prototypes 33COPTOPT= -O 34KDEFINES= -DKERNEL -D_KERNEL 35#COPTDYN= -fpic 36COPTGPROF= -pg 37 38LIB_PREFIX= lib 39LIB_SUFFIX= .a 40#SHL_SUFFIX= .so.1.0 41 42LIB_SOCKET= 43LIB_MATH= -lm 44#LIB_KVM= -lkvm 45LIB_KVM= 46 47LIBS_PATH= -L$(OLIBSDIR) 48 49LDFLAGS= $(LDOPTS) $(LDOPTX) 50LDLIBS= $(LIBS) $(LIBX) 51 52#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH) 53LDOPTS= $(LIBS_PATH) $(LDPATH) 54#LDOPTDYN= -shared -Wl,-soname,$(TARGET) 55#LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so 56 57FLOAT_OPTIONS= 58 59CC= @echo " ==> COMPILING \"$@\""; gcc 60# shlicc2 is not present oln older or newer systems 61#LDCC= @echo " ==> LINKING \"$@\""; shlicc2 62LDCC= @echo " ==> LINKING \"$@\""; shlicc 63#DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc 64RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib 65ARFLAGS= cr 66LORDER= lorder 67TSORT= tsort 68 69RMDEP= : 70MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M 71MKDEP_OUT= 72