Changeset 9bf0f86 in buchla-68k
- Timestamp:
- 07/01/2017 09:51:12 PM (7 years ago)
- Branches:
- master
- Children:
- df097bf
- Parents:
- ef7ae7e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
ref7ae7e r9bf0f86 1 1 build 2 *.a 3 *.abs -
Makefile
ref7ae7e r9bf0f86 5 5 CROSS_GCC := $(CROSS_PRE)-gcc 6 6 CROSS_AS := $(CROSS_PRE)-as 7 CROSS_AR := $(CROSS_PRE)-ar 7 8 8 9 # -mshort sets the size of an int to 16 bits; important for interop with … … 11 12 FLAGS := -Os -m68000 -Wall -Wextra 12 13 13 FLAGS_COM := $(FLAGS) -mshort -std=c99 -ffreestanding \14 FLAGS_COM := $(FLAGS) -mshort -std=c99 -ffreestanding -nostdinc \ 14 15 -fno-strict-aliasing -fno-inline -fno-omit-frame-pointer \ 15 16 -Wpedantic -Wcast-align -Wcast-qual -Wconversion -Wsign-conversion \ … … 18 19 19 20 FLAGS_ASM := $(FLAGS) -Wa,--register-prefix-optional 21 FLAGS_LNK := $(FLAGS) -mshort -std=c99 -ffreestanding -nostdlib 20 22 21 23 HEADERS := $(wildcard include/*.h) 24 25 all: rom.abs midas.abs 22 26 23 27 PROLOG_C := croot.c … … 36 40 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 37 41 42 prolog.a: $(PROLOG_OBJ) 43 rm -f prolog.a 44 $(CROSS_AR) rcs prolog.a $(PROLOG_OBJ) 45 38 46 IOLIB_C := dofmt.c mdump.c pause.c printf.c rawio.c sprintf.c waitcr.c 39 47 IOLIB_S := hwdefs.s rtraps.s setipl.s setsr.s traps.s … … 50 58 build/%.o: iolib/%.s $(HEADERS) | build 51 59 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 60 61 iolib.a: $(IOLIB_OBJ) 62 rm -f iolib.a 63 $(CROSS_AR) rcs iolib.a $(IOLIB_OBJ) 52 64 53 65 LIBCIO_C := atoi.c atol.c blkrd.c blkwr.c close.c clusmap.c conin.c conwr.c \ … … 72 84 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 73 85 86 libcio.a: $(LIBCIO_OBJ) 87 rm -f libcio.a 88 $(CROSS_AR) rcs libcio.a $(LIBCIO_OBJ) 89 74 90 LIBSM_C := index.c memccpy.c memchr.c memcmp.c memcmpu.c memcpy.c memcpyw.c \ 75 91 memset.c memsetw.c rindex.c str2lc.c str2uc.c strcat.c strccpy.c \ … … 86 102 $(CROSS_GCC) $(FLAGS_COM) -c -o $@ $< 87 103 104 libsm.a: $(LIBSM_OBJ) 105 rm -f libsm.a 106 $(CROSS_AR) rcs libsm.a $(LIBSM_OBJ) 107 88 108 LIB700_C := bitrev.c ctype.c ispow2.c mangle.c micons.c tolower.c toupper.c 89 109 … … 102 122 build/%.o: lib700/%.s $(HEADERS) | build 103 123 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 124 125 lib700.a: $(LIB700_OBJ) 126 rm -f lib700.a 127 $(CROSS_AR) rcs lib700.a $(LIB700_OBJ) 104 128 105 129 VLIB_C := cg2.c cg3.c glcinit.c lseg.c vbfill4.c vclrs.c vhinit.c vmput.c \ … … 123 147 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 124 148 125 all: $(PROLOG_OBJ) $(IOLIB_OBJ) $(LIBCIO_OBJ) $(LIBSM_OBJ) $(LIB700_OBJ) \ 126 $(VLIB_OBJ) 149 vlib.a: $(VLIB_OBJ) 150 rm -f vlib.a 151 $(CROSS_AR) rcs vlib.a $(VLIB_OBJ) 127 152 128 153 ROM_C := booter.c romp.c … … 140 165 build/%.o: rom/%.s $(HEADERS) | build 141 166 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 167 168 rom.abs: prolog.a iolib.a libcio.a libsm.a lib700.a vlib.a $(ROM_OBJ) 169 $(CROSS_GCC) $(FLAGS_LNK) -o rom.abs $(ROM_OBJ) \ 170 prolog.a libcio.a vlib.a iolib.a libsm.a lib700.a 142 171 143 172 RAM_C := addfpu.c adfield.c adselbx.c asgdsp.c asgvce.c barbadj.c chgsef.c \ … … 175 204 $(CROSS_GCC) $(FLAGS_ASM) -c -o $@ $< 176 205 177 all: $(PROLOG_OBJ) $(IOLIB_OBJ) $(LIBCIO_OBJ) $(LIBSM_OBJ) $(LIB700_OBJ) \ 178 $(VLIB_OBJ) $(ROM_OBJ) $(RAM_OBJ) 206 midas.abs: prolog.a iolib.a libcio.a libsm.a lib700.a vlib.a $(RAM_OBJ) 207 $(CROSS_GCC) $(FLAGS_LNK) -o midas.abs $(RAM_OBJ) \ 208 prolog.a libcio.a vlib.a iolib.a libsm.a lib700.a 179 209 180 210 build: … … 199 229 clean: 200 230 rm -rf build 231 rm -f prolog.a iolib.a libcio.a libsm.a lib700.a vlib.a 232 rm -f rom.abs midas.abs 201 233 rm -f hatari/c.img 202 234 rm -f hatari/d/out/*
Note:
See TracChangeset
for help on using the changeset viewer.