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.37;	author steinber;	state Exp;
branches
	1.1.1.1;
next	;

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

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

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


desc
@@



1.1
log
@Initial revision
@
text
@#
# Makefile for crt0.o of Linux
#
#

include ../Makeconfig

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

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

ifdef CHECKER

OBJS = chkrcrt0.o
CFLAGS := $(subst -checker,,$(CFLAGS))

TARGET=checker

else

ifdef PROFILE

OBJS  = gcrt0.o

TARGET=profile

else

OBJS  = crt0.o

TARGET=normal

endif
endif

.SUFFIXES:
.SUFFIXES: .S .o .c .s

.s.o :
	$(CC) $(CFLAGS) -c $<
#	$(LD) $(LDFLAGS) $*.o
#	$(MV) a.out $*.o

.S.o :
	$(CC) $(CFLAGS) -c $<
#	$(LD) $(LDFLAGS) $*.o
#	$(MV) a.out $*.o

.c.o :
	$(CC) $(CFLAGS) -c $<
#	$(LD) $(LDFLAGS) $*.o
#	$(MV) a.out $*.o

.c.s :
	$(CC) $(CFLAGS) -S $<

all: $(OBJS)


install: $(OBJS) $(TARGET)

normal:
	cp $(OBJS) $(TARGET_LIB_DIR)

profile:
	cp $(OBJS) $(TARGET_LIBEXTRA_DIR)

checker:
	cp $(OBJS) $(TARGET_LIBEXTRA_DIR)

clean:
	$(RM) -f core *.o *.a tmp_make foo
	-for i in *.c;do \
	  if [ -f $$i ]; then \
	    $(RM) -f `basename $$i .c`.s; \
	  fi; \
	done

dep:
	@@echo No dependency in ./crt.
@


1.1.1.1
log
@LIBC_4_5_7
@
text
@@


1.1.1.2
log
@LIBC_4_5_10
@
text
@d6 1
a6 13
LD=true
MV=true
override STATIC_SHARED=false
override SHARED=false
override DEBUG=false

include ../../../../Makeconfig
include ../../../../Makerules

CFLAGS=
DEBUG_CFLAGS=
PROFILE_CFLAGS=
CHECKER_CFLAGS=
d8 7
a14 1
#.PHONY: check_crt static_crt profile_crt
d16 2
a17 1
all lib: check_crt static_crt profile_crt
d19 2
a20 2
ifeq ($CHECKER),true)
check_crt: $(CHECKER_DIR)/chkrcrt0.o
d22 6
a27 3
check_crt:
	@@true
endif
a28 2
ifeq ($(PROFILE),true)
profile_crt: $(PROFILE_DIR)/gcrt0.o
d30 6
a35 2
profile_crt:
	@@true
d38 34
a71 6
ifeq ($(STATIC),true)
static_crt: $(STATIC_DIR)/crt0.o
else
static_crt:
	@@true
endif
d73 7
a79 2
realclean clean:
	$(RM) -f core *.s *.o *.a tmp_make foo
d81 2
a82 2
depend:
	@@echo No dependency in `pwd`.
@


1.1.1.3
log
@LIBC_4_5_11
@
text
@d12 2
a13 1
TOPDIR=../../../..
a14 3
include $(TOPDIR)/Makeconfig
include $(TOPDIR)/Makerules

d20 4
d25 4
a28 1
lib::: $(CHECKER_DIR)/chkrcrt0.o
d32 4
a35 1
lib:: $(PROFILE_DIR)/gcrt0.o
d39 4
a42 1
lib:: $(STATIC_DIR)/crt0.o
a44 3
lib::
	@@true

@
