URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [m68k/] [crt/] [Makefile] - Rev 199
Go to most recent revision | Compare with Previous | Blame | View Log
#
# Makefile for crt0.o of Linux
#
#
LD=true
MV=true
override STATIC_SHARED=false
override SHARED=false
override DEBUG=false
TOPDIR=../../../..
include $(TOPDIR)/Makeconfig
include $(TOPDIR)/Makerules
CFLAGS=-DDEFAULT_LOCALE="`$(CC) -E defaultlocale.c | grep DEFAULT_LOCALE | sed -e 's/^[^:]*://' -e 's/|/+/g'`"
PIC_CFLAGS=$(CFLAGS)
SHARED_CFLAGS=$(CFLAGS)
DEBUG_CFLAGS=$(CFLAGS)
PROFILE_CFLAGS=$(CFLAGS)
CHECKER_CFLAGS=$(CFLAGS)
CC = $(REALCC)
SRCS= defaultlocale.c
ifeq ($(ELF),true)
lib:: $(ELF_SHARED_DIR)/crt1.o \
$(ELF_SHARED_DIR)/crti.o $(ELF_SHARED_DIR)/crtn.o \
$(ELF_PROFILE_DIR)/gcrt1.o
$(ELF_SHARED_DIR)/crt1.o: crt1.S crt0.S
$(ELF_PROFILE_DIR)/gcrt1.o: gcrt1.S gcrt0.S
else
ifeq ($(CHECKER),true)
lib:: $(CHECKER_DIR)/chkrcrt0.o
endif
ifeq ($(PROFILE),true)
lib:: $(PROFILE_DIR)/gcrt0.o
endif
ifeq ($(STATIC),true)
lib:: $(STATIC_DIR)/crt0.o
endif
endif
lib::
@true
realclean clean:
$(RM) -f core *.s *.o *.a tmp_make foo
depend:
$(CC) -M $(SRCS) | \
sed -e 's,^[ ]*\(.*\.o\)[ ]*:,$(STATIC_DIR)/crt0.o $(PROFILE_DIR)/gcrt0.o $(ELF_SHARED_DIR)/crt1.o $(ELF_PROFILE_DIR)/gcrt1.o $(CHECKER_DIR)/checkcrt0.o:,' > .depend
#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
Go to most recent revision | Compare with Previous | Blame | View Log