head	1.4;
access;
symbols
	dws_pl15i:1.4
	LINUX_0_99_15I:1.1.1.1
	cluster_15h:1.4
	dws_pl15h_ibcs:1.4
	LINUX_0_99_15H:1.1.1.1
	LINUX_0_99_15G:1.1.1.1
	dws_pl15f_cluster_08a:1.3
	dws_pl15f:1.2
	LINUX_0_99_15F:1.1.1.1
	dws_pl15e:1.2
	LINUX_0_99_15E:1.1.1.1
	LINUX_0_99_15D:1.1.1.1
	LINUX_0_99_15C:1.1.1.1
	dws_pl15b:1.2
	LINUX_0_99_15B:1.1.1.1
	dws_pl15a:1.2
	LINUX_0_99_15A:1.1.1.1
	dws_pl15:1.2
	LINUX_0_99_15:1.1.1.1
	LINUX_0_99_14Z:1.1.1.1
	dws_pl14y:1.2
	LINUX_0_99_14Y:1.1.1.1
	dws_pl14x:1.2
	LINUX_0_99_14X:1.1.1.1
	LINUX_0_99_14W:1.1.1.1
	LINUX_0_99_14V:1.1.1.1
	LINUX_0_99_14U:1.1.1.1
	dws_pl14t:1.2
	LINUX_0_99_14T:1.1.1.1
	dws_pl14s:1.2
	LINUX_0_99_14S:1.1.1.1
	dws_pl14r:1.2
	LINUX_0_99_14R:1.1.1.1
	dws_pl14q:1.2
	LINUX_0_99_14Q:1.1.1.1
	dws_pl14p:1.2
	LINUX_0_99_14P:1.1.1.1
	dws_pl14o:1.2
	LINUX_0_99_14O:1.1.1.1
	LINUX_0_99_14M:1.1.1.1
	LINUX_0_99_14L:1.1.1.1
	LINUX_0_99_14K:1.1.1.1
	LINUX_0_99_14J:1.1.1.1
	LINUX_0_99_14I:1.1.1.1
	LINUX_0_99_14H:1.1.1.1
	LINUX_0_99_14G:1.1.1.1
	dws_pl14f:1.2
	LINUX_0_99_14F:1.1.1.1
	dws_pl14e:1.2
	LINUX_0_99_14E:1.1.1.1
	LINUX_0_99_14D:1.1.1.1
	LINUX_0_99_14C:1.1.1.1
	LINUX_0_99_14B:1.1.1.1
	LINUX_0_99_14A:1.1.1.1
	LINUX_0_99_14:1.1.1.1
	LINUX:1.1.1;
locks; strict;
comment	@# @;


1.4
date	94.02.26.22.07.04;	author dws;	state Exp;
branches;
next	1.3;

1.3
date	94.02.22.23.02.09;	author dws;	state Exp;
branches;
next	1.2;

1.2
date	93.12.15.16.03.28;	author steinber;	state Exp;
branches;
next	1.1;

1.1
date	93.12.09.16.58.16;	author steinber;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	93.12.09.16.58.17;	author steinber;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Added iBCS emulation support.
@
text
@#
# Makefile for the iBCS emulator files
#
# $Id: Makefile,v 1.1.1.2 1994/02/23 17:22:57 mike Exp $
# $Source: /var/CVS/ibcs/Makefile,v $
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...
#
# Feb 14 1994
#   Dual mode. If iBCS support is configured in to the kernel and this
#   source replaces the ibcs in the standard distribution an ibcs.o
#   will be built and linked with the kernel. If iBCS support isn't
#   configured in to the kernel then a loadable module is built which
#   can be attached to the iBCS interface stubs in the kernel. Using the
#   loadable module form of iBCS emulation introduces a small overhead
#   (a variable read and function call) on each system call.
#   -- Mike Jagdis (jaggy@@purplet.demon.co.uk)


# CONFIGURATION SECTION

# SOCKSYS_MAJOR is the major number to use for the /dev/socksys socket
# interface to streams based TCP/IP (i.e. Lachman as used by many SVR3s).
# Setting this to zero tells the module initialisation code to attempt
# to auto allocate the next available major number. This is not currently
# supported by any kernel known, so don't do it!
# You also need to create the file /dev/socksys with mknod, e.g.:
#    mknod /dev/socksys c <n> 0
# where <n> is the chosen major number.
SOCKSYS_MAJOR=31

# The following compile time options are available:
#
# -DIBCS_TRACE		Add code to trace the iBCS emulator.
#
# -DVERBOSE_ERRORS	Give textual error message as well as number in
#                       the trace log. (This only makes sense if IBCS_TRACE
#                       is also defined)
#
# -DSOCKSYS_DEBUG	Give some useful(?) information from the socksys
#			driver.
OPTIONS=-DIBCS_TRACE -DVERBOSE_ERRORS -DSOCKSYS_DEBUG

# END CONFIGURATION SECTION


ifeq (${CFLAGS},)
CFLAGS = -Wall -Wstrict-prototypes \
	-O2 -fomit-frame-pointer -pipe -m486
endif
CFLAGS += -DSOCKSYS_MAJOR=$(SOCKSYS_MAJOR) -D__KERNEL__=1 \
	$(OPTIONS)

include /usr/src/linux/.config

.S.s:
	$(CPP) -traditional $< -o $*.s
.c.s:
	$(CC) $(CFLAGS) -S $<
.s.o:
	$(AS) -c -o $*.o $<
.c.o:
	$(CC) $(CFLAGS) -c $<

OBJS = binfmt_coff.o binfmt_elf.o coff.o fcntl.o ioctl.o ipc.o mmap.o open.o \
	signal.o stat.o sysconf.o sysfs.o sysi86.o socksys.o \
	ulimit.o wysev386.o wysev386i.o xnx.o xstat.o


ifdef CONFIG_BINFMT_IBCS
all:	ibcs.o

ibcs.o: emulate.o $(OBJS)
	$(LD) -r -o ibcs.o emulate.o $(OBJS)
	sync
else
all:	ibcs.o iBCS

ibcs.o:	emu.stub.o
	$(LD) -r -o ibcs.o emu.stub.o

iBCS:	emulate2.o $(OBJS)
	$(LD) -r -o iBCS emulate2.o $(OBJS)
endif

emulate2.o:	emulate.c
	$(CC) $(CFLAGS) \
		-DKVERSION=\"`uname -r`\" \
		-c -o emulate2.o emulate.c

clean:
	rm -f core *.o *.a *.s

dep:
	$(CPP) -M *.c > .depend

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
@


1.3
log
@Applied cluster-0.8a patches.
@
text
@d4 2
a5 2
# $Id: Makefile,v 1.6 1994/02/09 02:54:50 drew Exp $
# $Source: /g/linux/ibcs/src/RCS/Makefile,v $
d12 35
d48 3
d52 2
a53 1
CFLAGS = -D__KERNEL__=1 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486
d55 2
d58 1
a58 1
include /linux/.config
d69 2
a70 3
OBJS      = emulate.o
OTHER_OBJ = coff.o fcntl.o ioctl.o ipc.o mmap.o open.o \
	signal.o stat.o sysconf.o sysfs.o sysi86.o \
d72 4
a75 1
OBJS_CODE =
d77 5
a81 15
#
# If the IBCS flag is set then include the other modules
ifdef CONFIG_IBCS
OBJS_CODE = $(OTHER_OBJ)
endif
#
# IBCS will be used if ELF object format is allowed
ifdef CONFIG_BINFMT_ELF
OBJS_CODE = $(OTHER_OBJ)
endif
#
# IBCS will be used if COFF object format is allowed
ifdef CONFIG_BINFMT_COFF
OBJS_CODE = $(OTHER_OBJ)
endif
d83 2
a84 1
OBJS   := $(OBJS) $(OBJS_CODE)
d86 3
a88 1
SUBDIRS	= 
d90 4
a93 3
ibcs.o: $(OBJS)
	$(LD) -r -o ibcs.o $(OBJS)
	sync
a96 1
	for i in $(SUBDIRS); do (cd $$i && $(MAKE) clean); done
a99 1
	for i in $(SUBDIRS); do (cd $$i && $(MAKE) dep) || exit; done
@


1.2
log
@some Makefile changes for cross-compilation
@
text
@d4 3
d13 6
d28 24
a53 2
OBJS  = emulate.o

d56 1
d58 4
d64 1
a64 1
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i dep; done
a73 1

@


1.1
log
@Initial revision
@
text
@a24 1
	sync
@


1.1.1.1
log
@LINUX_0_99_14
@
text
@@
