- Timestamp:
- 07/02/2017 12:33:42 AM (7 years ago)
- Branches:
- master
- Children:
- 66b48e7
- Parents:
- 0cfc372
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r0cfc372 r10afc24 43 43 rm -f prolog.a 44 44 $(CROSS_AR) rcs prolog.a $(PROLOG_OBJ) 45 46 IOLIB_C := dofmt.c mdump.c pause.c printf.c rawio.c sprintf.c waitcr.c47 IOLIB_S := hwdefs.s rtraps.s setipl.s setsr.s traps.s48 49 IOLIB_CO := $(IOLIB_C:.c=.o)50 IOLIB_SO := $(IOLIB_S:.s=.o)51 IOLIB_OBJ := $(IOLIB_CO:%=build/%) $(IOLIB_SO:%=build/%)52 53 build/%.o: iolib/%.c $(HEADERS) | build54 $(CROSS_GCC) $(FLAGS_COM) -c -o $@ $<55 $(CROSS_OBJC) --redefine-syms misc/rewrite.txt $@56 57 build/%.o: iolib/%.s $(HEADERS) | build58 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $<59 60 iolib.a: $(IOLIB_OBJ)61 rm -f iolib.a62 $(CROSS_AR) rcs iolib.a $(IOLIB_OBJ)63 45 64 46 LIBCIO_C := atoi.c atol.c blkrd.c blkwr.c close.c clusmap.c conin.c conwr.c \ … … 86 68 $(CROSS_AR) rcs libcio.a $(LIBCIO_OBJ) 87 69 70 VLIB_C := cg2.c cg3.c glcinit.c lseg.c vbfill4.c vclrs.c vhinit.c vmput.c \ 71 vobjfns.c vputs.c vputsv.c vsetpal.c vsinit.c vspray4.c vtext.c \ 72 vwputm.c 73 74 VLIB_S := acctrl.s glcplot.s tsplot4.s vbank.s vclrav.s vcputs.s vcputsv.s \ 75 viint.s vputa.s vputc.s vputcv.s vputp.s vsetav.s vsetcv.s vsplot4.s \ 76 vvputsv.s vwputp.s vwputs.s 77 78 VLIB_CO := $(VLIB_C:.c=.o) 79 VLIB_SO := $(VLIB_S:.s=.o) 80 VLIB_OBJ := $(VLIB_CO:%=build/%) $(VLIB_SO:%=build/%) 81 82 build/%.o: vlib/%.c $(HEADERS) | build 83 $(CROSS_GCC) $(FLAGS_COM) -c -o $@ $< 84 $(CROSS_OBJC) --redefine-syms misc/rewrite.txt $@ 85 86 build/%.o: vlib/%.s $(HEADERS) | build 87 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 88 89 vlib.a: $(VLIB_OBJ) 90 rm -f vlib.a 91 $(CROSS_AR) rcs vlib.a $(VLIB_OBJ) 92 93 IOLIB_C := dofmt.c mdump.c pause.c printf.c rawio.c sprintf.c waitcr.c 94 IOLIB_S := hwdefs.s rtraps.s setipl.s setsr.s traps.s 95 96 IOLIB_CO := $(IOLIB_C:.c=.o) 97 IOLIB_SO := $(IOLIB_S:.s=.o) 98 IOLIB_OBJ := $(IOLIB_CO:%=build/%) $(IOLIB_SO:%=build/%) 99 100 build/%.o: iolib/%.c $(HEADERS) | build 101 $(CROSS_GCC) $(FLAGS_COM) -c -o $@ $< 102 $(CROSS_OBJC) --redefine-syms misc/rewrite.txt $@ 103 104 build/%.o: iolib/%.s $(HEADERS) | build 105 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 106 107 iolib.a: $(IOLIB_OBJ) 108 rm -f iolib.a 109 $(CROSS_AR) rcs iolib.a $(IOLIB_OBJ) 110 88 111 LIBSM_C := index.c memccpy.c memchr.c memcmp.c memcmpu.c memcpy.c memcpyw.c \ 89 112 memset.c memsetw.c rindex.c str2lc.c str2uc.c strcat.c strccpy.c \ … … 123 146 $(CROSS_AR) rcs lib700.a $(LIB700_OBJ) 124 147 125 VLIB_C := cg2.c cg3.c glcinit.c lseg.c vbfill4.c vclrs.c vhinit.c vmput.c \126 vobjfns.c vputs.c vputsv.c vsetpal.c vsinit.c vspray4.c vtext.c \127 vwputm.c128 129 VLIB_S := acctrl.s glcplot.s tsplot4.s vbank.s vclrav.s vcputs.s vcputsv.s \130 viint.s vputa.s vputc.s vputcv.s vputp.s vsetav.s vsetcv.s vsplot4.s \131 vvputsv.s vwputp.s vwputs.s132 133 VLIB_CO := $(VLIB_C:.c=.o)134 VLIB_SO := $(VLIB_S:.s=.o)135 VLIB_OBJ := $(VLIB_CO:%=build/%) $(VLIB_SO:%=build/%)136 137 build/%.o: vlib/%.c $(HEADERS) | build138 $(CROSS_GCC) $(FLAGS_COM) -c -o $@ $<139 $(CROSS_OBJC) --redefine-syms misc/rewrite.txt $@140 141 build/%.o: vlib/%.s $(HEADERS) | build142 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $<143 144 vlib.a: $(VLIB_OBJ)145 rm -f vlib.a146 $(CROSS_AR) rcs vlib.a $(VLIB_OBJ)147 148 148 ROM_C := booter.c romp.c 149 149 ROM_S := bios.s timeint.s … … 167 167 168 168 rom.abs: $(ROM_OBJ) \ 169 prolog.a iolib.a libcio.a libsm.a lib700.a vlib.a169 prolog.a libcio.a vlib.a iolib.a libsm.a lib700.a 170 170 $(CROSS_GCC) $(FLAGS_LNK) -Wl,--script,misc/rom.ld,--entry,0x100000 \ 171 171 -o rom.abs $(ROM_OBJ) \ … … 206 206 207 207 midas.abs: $(LOWRAM_OBJ) prolog.a $(RAM_OBJ) \ 208 iolib.a libcio.a libsm.a lib700.a vlib.a208 libcio.a vlib.a iolib.a libsm.a lib700.a 209 209 $(CROSS_GCC) $(FLAGS_LNK) -Wl,--script,misc/ram.ld,--entry,0x10000 \ 210 210 -o midas.abs $(LOWRAM_OBJ) prolog.a $(RAM_OBJ) \
Note:
See TracChangeset
for help on using the changeset viewer.