📄 target.mk
字号:
# File: lib/target.mk# Purpose: slave ""Makefile"" - builds one target directory at a time# Author: Phil Bunce (pjb@carmel.com)# Revision History:# 970303 Fixed prob with vers.c etc..# 970317 Added comments about the various crt's# 970317 Moved *vers.o from OBJinclude $(LSIPKG)/defines.mkinclude ../files.mkCC = pmccICEOBJS = k4101a.o ia4101.o ia4101-rom.o ic4101.o \ k4011a.o ia4011.o ia4011-rom.o ic4011.o \ k4102a.o ia4102.o ia4102-rom.o ic4102.o \ k4011a-4k.o ia4011-4k.o ia4011-4k-rom.o ic4011-4k.o# keep OBJS simple to make the dos conversion easierOBJS = $(CFILES:.c=.o) $(ASFILES:.s=.o) irq4_a.oOBJ = lib$(NMOD)c.a crt1$(NMOD).o crt0$(NMOD).o crtn$(NMOD).o \ crt3.o crt2.o xflash.o $(ICEOBJS) $(EXTRA_LIB_OBJS)all : $(OBJ) @echo lib/$(ENDIAN) is now up to datelib$(NMOD)c.a: $(OBJS) libvers.o toolvers.o incvers.o ../rules.mk @$(RMF) lib$(NMOD)c.a $(AR) lib$(NMOD)c.a $(OBJS) libvers.o toolvers.o incvers.oclean: @$(RMFOBJS) $(OBJ) lib$(NMOD)c.a libvers.o toolvers.o incvers.oreduce: @$(RMFOBJS) libvers.o toolvers.o incvers.ovsprintf.o dbl2asci.o atod.o crt1$(NMOD).o crt0$(NMOD).o atof.o \nvram.o sizemem.o termio.o sonic.o getmach.o cpuinit.o \: $(LSIPKG)/include/defines.hinclude ../rules.mk# The MIPS tools require crt1 and crtn, the other toolsets expect crt0, or# they don't care.# NMOD is required to support the MIPS Sun-hosted tools. They name everything# crt1r3000.o etc.crt1$(NMOD).o : ../crt1.s pmcc -c $(ASFLAGS) -o crt1$(NMOD).o ../crt1.scrtn$(NMOD).o : ../crtn.s pmcc -c $(ASFLAGS) -o crtn$(NMOD).o ../crtn.scrt0$(NMOD).o : ../crt1.s pmcc -c $(ASFLAGS) -o crt0$(NMOD).o ../crt1.s# crt3 is for SerialICE driverscrt3.o : ../crt3.s pmcc -c $(ASFLAGS) -o crt3.o ../crt3.s# This is to support r4k exceptions in a stand-alone environment.irq4_a.o : ../irq_a.s pmcc -c $(ASFLAGS) -DR4KEXCEPTIONS -o irq4_a.o ../irq_a.s# This is required for the MIPS Sun-hosted toolset when you select the# -mips2 switch.lib$(NMOD)c_mips2.a : lib$(NMOD)c.a cp lib$(NMOD)c.a lib$(NMOD)c_mips2.a # required for pmcc's -xflash optioncrt2.o : ../crt2.s pmcc -c $(ASFLAGS) -o crt2.o ../crt2.sxflash.o : ../xflash.c pmcc $(TFLAG) -c -o $@ ../xflash.c# required for pmcc's -board optionk4101a.o : ../k4101.s pmcc $(TFLAG) -DRUN_APP -c -o $@ ../k4101.sia4101.o : ../ia4101.s pmcc $(TFLAG) -c -o $@ ../ia4101.sia4101-rom.o : ../ia4101.s pmcc $(TFLAG) -DROM_BASED -c -o $@ ../ia4101.sic4101.o : ../ic4101.c pmcc $(TFLAG) -c -o $@ ../ic4101.ck4011a.o : ../k4011.s pmcc $(TFLAG) -DRUN_APP -c -o $@ ../k4011.sia4011.o : ../ia4011.s pmcc $(TFLAG) -c -o $@ ../ia4011.sia4011-rom.o : ../ia4011.s pmcc $(TFLAG) -DROM_BASED -c -o $@ ../ia4011.sic4011.o : ../ic4011.c pmcc $(TFLAG) -c -o $@ ../ic4011.ck4011a-4k.o : ../k4011.s pmcc $(TFLAG) -DRUN_APP -DR4KEXCEPTIONS -c -o $@ ../k4011.sia4011-4k.o : ../ia4011.s pmcc $(TFLAG) -DR4KEXCEPTIONS -c -o $@ ../ia4011.sia4011-4k-rom.o : ../ia4011.s pmcc $(TFLAG) -DROM_BASED -DR4KEXCEPTIONS -c -o $@ ../ia4011.sic4011-4k.o : ../ic4011.c pmcc $(TFLAG) -DR4KEXCEPTIONS -c -o $@ ../ic4011.ck4102a.o : ../k4102.s pmcc $(TFLAG) -DRUN_APP -c -o $@ ../k4102.sia4102.o : ../ia4102.s pmcc $(TFLAG) -c -o $@ ../ia4102.sia4102-rom.o : ../ia4102.s pmcc $(TFLAG) -DROM_BASED -c -o $@ ../ia4102.sic4102.o : ../ic4102.c pmcc $(TFLAG) -c -o $@ ../ic4102.c# DO NOT DELETE THIS LINE -- make depend depends on it.atob.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hcc2str.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/string.hcc2str.o: $(LSIPKG)/include/string2.h $(LSIPKG)/include/utypes.hdbl2asci.o: $(LSIPKG)/include/defines.hgetword.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hindex.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hlseek.o: $(LSIPKG)/include/errno.h $(LSIPKG)/include/termio.hlseek.o: $(LSIPKG)/include/unistd.hprintf.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hprintf.o: $(LSIPKG)/include/varargs.hqueue.o: $(LSIPKG)/include/queue.hrindex.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hsizemem.o: $(LSIPKG)/include/cobrcore.h $(LSIPKG)/include/dbxcore.hsizemem.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/ernicore.hsizemem.o: $(LSIPKG)/include/l9a0084.h $(LSIPKG)/include/lr3000.hsizemem.o: $(LSIPKG)/include/lr33000.h $(LSIPKG)/include/lr33020.hsizemem.o: $(LSIPKG)/include/lr33300.h $(LSIPKG)/include/lr4001.hsizemem.o: $(LSIPKG)/include/lr4002.h $(LSIPKG)/include/lr4010.hsizemem.o: $(LSIPKG)/include/lr4101.h $(LSIPKG)/include/lr4102.hsizemem.o: $(LSIPKG)/include/lr64008.h $(LSIPKG)/include/lr64360.hsizemem.o: $(LSIPKG)/include/lr64363.h $(LSIPKG)/include/lr64364.hsizemem.o: $(LSIPKG)/include/lr64388.h $(LSIPKG)/include/mips.hsizemem.o: $(LSIPKG)/include/utypes.hstdio.o: $(LSIPKG)/include/fcntl.h $(LSIPKG)/include/malloc.hstdio.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hstdio.o: $(LSIPKG)/include/varargs.hstr2cc.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstr_fmt.o: $(LSIPKG)/include/strfmt.h $(LSIPKG)/include/string.hstr_fmt.o: $(LSIPKG)/include/string2.hstrbalp.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrbequ.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrcat.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrccat.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrchr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrdchr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrempty.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrequ.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrichr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstriequ.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstristr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrlen.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrncat.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrncmp.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrncpy.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrnwrd.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrpat.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/string2.hstrpat.o: $(LSIPKG)/include/utypes.hstrpbrk.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrposn.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrrchr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrrpset.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrrset.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrset.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrstr.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrtok.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hstrtoupp.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.htermio.o: $(LSIPKG)/include/cobrcore.h $(LSIPKG)/include/dbxcore.htermio.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/ernicore.htermio.o: $(LSIPKG)/include/errno.h $(LSIPKG)/include/l9a0084.htermio.o: $(LSIPKG)/include/lr3000.h $(LSIPKG)/include/lr33000.htermio.o: $(LSIPKG)/include/lr33020.h $(LSIPKG)/include/lr33300.htermio.o: $(LSIPKG)/include/lr4001.h $(LSIPKG)/include/lr4002.htermio.o: $(LSIPKG)/include/lr4010.h $(LSIPKG)/include/lr4101.htermio.o: $(LSIPKG)/include/lr4102.h $(LSIPKG)/include/lr64008.htermio.o: $(LSIPKG)/include/lr64360.h $(LSIPKG)/include/lr64363.htermio.o: $(LSIPKG)/include/lr64364.h $(LSIPKG)/include/lr64388.htermio.o: $(LSIPKG)/include/mips.h $(LSIPKG)/include/queue.htermio.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/termio.htermio.o: $(LSIPKG)/include/terms.h $(LSIPKG)/include/utypes.hterms.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/termio.hterms.o: $(LSIPKG)/include/utypes.htime.o: $(LSIPKG)/include/cobrcore.h $(LSIPKG)/include/dbxcore.htime.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/ernicore.htime.o: $(LSIPKG)/include/l9a0084.h $(LSIPKG)/include/lr3000.htime.o: $(LSIPKG)/include/lr33000.h $(LSIPKG)/include/lr33020.htime.o: $(LSIPKG)/include/lr33300.h $(LSIPKG)/include/lr4001.htime.o: $(LSIPKG)/include/lr4002.h $(LSIPKG)/include/lr4010.htime.o: $(LSIPKG)/include/lr4101.h $(LSIPKG)/include/lr4102.htime.o: $(LSIPKG)/include/lr64008.h $(LSIPKG)/include/lr64360.htime.o: $(LSIPKG)/include/lr64363.h $(LSIPKG)/include/lr64364.htime.o: $(LSIPKG)/include/lr64388.h $(LSIPKG)/include/mips.htoupper.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hvsprintf.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/stdio.hvsprintf.o: $(LSIPKG)/include/strfmt.h $(LSIPKG)/include/string.hvsprintf.o: $(LSIPKG)/include/string2.h $(LSIPKG)/include/utypes.hvsprintf.o: $(LSIPKG)/include/varargs.hatod.o: $(LSIPKG)/include/defines.hread.o: $(LSIPKG)/include/termio.hcalloc.o: $(LSIPKG)/include/malloc.hatof.o: $(LSIPKG)/include/defines.hatol.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hopen.o: $(LSIPKG)/include/errno.h $(LSIPKG)/include/termio.hclose.o: $(LSIPKG)/include/termio.hwrite.o: $(LSIPKG)/include/errno.h $(LSIPKG)/include/termio.hatoi.o: $(LSIPKG)/include/string.h $(LSIPKG)/include/string2.hptty.o: $(LSIPKG)/include/terms.hkbhit.o: $(LSIPKG)/include/termio.hfileno.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hscanf.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/string.hscanf.o: $(LSIPKG)/include/string2.h $(LSIPKG)/include/utypes.hscanf.o: $(LSIPKG)/include/varargs.hfiles.o: $(LSIPKG)/include/termio.hfeof.o: $(LSIPKG)/include/termio.hsignal.o: $(LSIPKG)/include/errno.h $(LSIPKG)/include/signal.hsignal.o: $(LSIPKG)/include/termio.hfilbuf.o: $(LSIPKG)/include/malloc.h $(LSIPKG)/include/stdio.hfilbuf.o: $(LSIPKG)/include/utypes.hungetc.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hnvram.o: $(LSIPKG)/include/cobrcore.h $(LSIPKG)/include/dbxcore.hnvram.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/ernicore.hnvram.o: $(LSIPKG)/include/l9a0084.h $(LSIPKG)/include/lr3000.hnvram.o: $(LSIPKG)/include/lr33000.h $(LSIPKG)/include/lr33020.hnvram.o: $(LSIPKG)/include/lr33300.h $(LSIPKG)/include/lr4001.hnvram.o: $(LSIPKG)/include/lr4002.h $(LSIPKG)/include/lr4010.hnvram.o: $(LSIPKG)/include/lr4101.h $(LSIPKG)/include/lr4102.hnvram.o: $(LSIPKG)/include/lr64008.h $(LSIPKG)/include/lr64360.hnvram.o: $(LSIPKG)/include/lr64363.h $(LSIPKG)/include/lr64364.hnvram.o: $(LSIPKG)/include/lr64388.h $(LSIPKG)/include/malloc.hnvram.o: $(LSIPKG)/include/mips.h $(LSIPKG)/include/mon.hnvram.o: $(LSIPKG)/include/queue.h $(LSIPKG)/include/setjmp.hnvram.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/string.hnvram.o: $(LSIPKG)/include/string2.h $(LSIPKG)/include/termio.hnvram.o: $(LSIPKG)/include/utypes.hgetchar.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hputchar.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hputs.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hputc.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfgets.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfputs.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfflush.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hsprintf.o: $(LSIPKG)/include/varargs.hfprintf.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfprintf.o: $(LSIPKG)/include/varargs.hvfprintf.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hvfprintf.o: $(LSIPKG)/include/varargs.hfwrite.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfread.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfseek.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfclose.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hgets.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hfgetc.o: $(LSIPKG)/include/stdio.h $(LSIPKG)/include/utypes.hps2drivr.o: $(LSIPKG)/include/cobrcore.h $(LSIPKG)/include/dbxcore.hps2drivr.o: $(LSIPKG)/include/defines.h $(LSIPKG)/include/ernicore.hps2drivr.o: $(LSIPKG)/include/l9a0084.h $(LSIPKG)/include/lr3000.hps2drivr.o: $(LSIPKG)/include/lr33000.h $(LSIPKG)/include/lr33020.hps2drivr.o: $(LSIPKG)/include/lr33300.h $(LSIPKG)/include/lr4001.hps2drivr.o: $(LSIPKG)/include/lr4002.h $(LSIPKG)/include/lr4010.hps2drivr.o: $(LSIPKG)/include/lr4101.h $(LSIPKG)/include/lr4102.hps2drivr.o: $(LSIPKG)/include/lr64008.h $(LSIPKG)/include/lr64360.hps2drivr.o: $(LSIPKG)/include/lr64363.h $(LSIPKG)/include/lr64364.hps2drivr.o: $(LSIPKG)/include/lr64388.h $(LSIPKG)/include/mips.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -