head	1.1;
branch	1.1.1;
access;
symbols
	LIBC_4_5_19:1.1.1.3
	LIBC_4_5_18:1.1.1.3
	LIBC_4_5_17:1.1.1.3
	LIBC_4_5_16:1.1.1.3
	LIBC_4_5_15:1.1.1.3
	LIBC_4_5_14:1.1.1.3
	LIBC_4_5_13:1.1.1.3
	LIBC_4_5_12:1.1.1.3
	LIBC_4_5_11:1.1.1.3
	LIBC_4_5_10:1.1.1.2
	LIBC_4_5_9:1.1.1.1
	LIBC_4_5_8:1.1.1.1
	LIBC_4_5_7:1.1.1.1
	LIBC:1.1.1;
locks; strict;
comment	@# @;


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

1.1.1.1
date	93.12.14.16.58.54;	author steinber;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.01.13.12.16.45;	author steinber;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	94.01.19.16.25.11;	author steinber;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#
# Makefile for Linux specific functions
#

include ../../Makeconfig

include ../../Makerules

LIB:=libc.a

ifndef OPTFLAGS
OPTFLAGS= -O6 -fomit-frame-pointer
endif

CFLAGS = $(WFLAGS) $(OPTFLAGS) $(INC) $(XCFLAGS)

INC= -I../../sysdeps/linux/i386 -I../..

SRCS=__stat.c __lstat.c __symlink.c __link.c __main.c \
	__environ.c errno.c __unlink.c
OBJS= $(SRCS:.c=.o)
ASMS= $(SRCS:.c=.s)

$(LIB): $(OBJS)
	$(AR) uvc $(LIB) $(OBJS)
	-$(AR) -dv $(LIB) __.SYMDEF
	$(REALRANLIB) -v $(LIB)

asm: $(ASMS)

obj: $(OBJS)

clean:
	$(RM) -f core *.o libc.a *.s *.i tmp_make foo

depend:
	$(CC) -M $(SRCS) > .depend

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


1.1.1.1
log
@LIBC_4_5_7
@
text
@@


1.1.1.2
log
@LIBC_4_5_10
@
text
@d6 1
d11 5
a15 1
DIRS=$(TARGET_ARCH)
d17 1
a17 1
INC_CFLAGS= -I../../sysdeps/linux/$(TARGET_ARCH) -I../..
a23 3
lib: $(LIB)
	$(MAKE) subdir TARGET=$@@

d25 3
a27 3
	$(AR) uvc $(LIB) $?
	-$(AR) -d $(LIB) __.SYMDEF
	$(REALRANLIB) $(LIB)
d33 2
a34 3
clean realclean:
	$(RM) -f core *.o *.a *.s *.i tmp_make foo
	$(MAKE) subdir TARGET=$@@
d37 1
a37 7
	$(CC) -M $(CFLAGS) $(SRCS) > .depend
	$(MAKE) subdir TARGET=$@@

subdir:
	for d in $(DIRS); do \
	  cd $$d; $(MAKE) $(TARGET); \
	done
@


1.1.1.3
log
@LIBC_4_5_11
@
text
@d5 2
a6 1
TOPDIR=../..
a7 3
include $(TOPDIR)/Makeconfig
include $(TOPDIR)/Makerules

d12 1
a12 1
INC_CFLAGS= -I$(TOPDIR)/sysdeps/linux/$(TARGET_ARCH) -I$(TOPDIR)
d19 2
a20 1
lib:: $(LIB)
d31 1
a31 1
clean realclean::
d33 1
d35 1
a35 1
depend::
d37 1
d39 1
a39 2
ifneq ($(DIRS),)
lib clean realclean depend::
d41 1
a41 1
	  cd $$d; $(MAKE) $@@; \
a42 1
endif
@
