Mercurial > hg > Members > shivanidubey > xv6
view src/usr/Makefile @ 13:16f496e8b857
implement ticks syscall
author | anatofuz |
---|---|
date | Sat, 22 Jun 2019 13:19:06 +0900 |
parents | efd378a709cd |
children |
line wrap: on
line source
include ../makefile.inc CFLAGS += -iquote ../ ASFLAGS += -I ../ ULIB = ulib.o usys.o printf.o umalloc.o MKFS = ../tools/mkfs FS_IMAGE = ../build/fs.img UPROGS=\ _cat\ _echo\ _grep\ _init\ _kill\ _ln\ _ls\ _mkdir\ _rm\ _sh\ _stressfs\ _usertests\ _wc\ _zombie\ _hello\ _forktest\ _dummy # _check\ all: $(FS_IMAGE) _%: %.o $(ULIB) $(LD) $(LDFLAGS) -N -e main -Ttext 0 -o $@ $^ -L ../ $(LIBGCC) $(OBJDUMP) -S $@ > $*.asm $(OBJDUMP) -t $@ | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > $*.sym _forktest: forktest.o $(ULIB) # forktest has less library code linked in - needs to be small # in order to be able to max out the proc table. $(LD) $(LDFLAGS) -N -e main -Ttext 0 -o _forktest forktest.o ulib.o usys.o $(OBJDUMP) -S _forktest > forktest.asm $(FS_IMAGE): $(MKFS) $(UPROGS) $(MKFS) $@ $(UPROGS) UNIX $(OBJDUMP) -S usys.o > usys.asm clean: rm -f *.o *.d *.asm *.sym $(FS_IMAGE) \ .gdbinit \ $(UPROGS)