File:  [DVB] / dietlibc / dynlinker / Makefile
Revision 1.7: download - view: text, annotated - select for diffs
Thu Apr 18 14:51:51 2002 UTC (22 years, 1 month ago) by olaf
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
Commit the patches for __dtostr

CC=gcc
#CFLAGS = -Wall -g
CFLAGS = -Wall -Os -fomit-frame-pointer

ARCH = i386

DYNLINK = diet-linux.so

all: $(DYNLINK)

DLIBS   = ../bin-$(ARCH)/libdl.a ../bin-$(ARCH)/dietlibc.a
LINKOPS = -Wl,-Ttext=0x1080,-N,-eldso_start

$(DYNLINK): ldso_start.S ldso_test.c $(DLIBS)
	$(CROSS)$(CC) -I.. -I../include $(CFLAGS) -c ldso_test.c
	$(CROSS)$(CC) -I.. -I../include $(CFLAGS) -c ldso_start.S
	$(CROSS)$(CC) -nostdlib $(LDFLAGS) -o $@ ldso_start.o ldso_test.o $(DLIBS) -lgcc $(LINKOPS)
	$(CROSS)strip -R .comment -R .note $@

install: $(DYNLINK)
	cp $(DYNLINK) /lib

clean:
	$(RM) *.o *.a *.so *.out *~

LinuxTV legacy CVS <linuxtv.org/cvs>