5 top_builddir
= @top_builddir@
6 abs_top_builddir
= @abs_top_builddir@
10 EXTRA_CFLAGS
= -ms08
--max-allocs-per-node
25000
11 SAS
= $(top_builddir
)/bin
/sdas6808
13 # override PORTDIR defined by super (parent) makefile
14 override PORTDIR
= ..
/build
/s08
16 include $(srcdir)/..
/incl.mk
18 HC08_FLOAT
= $(COMMON_FLOAT
)
20 HC08_INT
= $(COMMON_INT
) \
27 HC08_LONG
= $(COMMON_LONG
) \
31 HC08_LONGLONG
= $(COMMON_LONGLONG
) \
42 HC08_SDCC
= $(COMMON_SDCC
) \
61 HC08SOURCES
= $(addprefix ..
/,$(HC08_FLOAT
) $(HC08_INT
) $(HC08_LONG
) $(HC08_LONGLONG
) $(HC08_SDCC
))
62 HC08OBJECTS
= $(patsubst %.c
,%.rel
,$(HC08_FLOAT
) $(HC08_INT
) $(HC08_LONG
) $(HC08_LONGLONG
) $(HC08_SDCC
))
64 OBJ
= _ret.rel _setjmp.rel atomic_flag_test_and_set.rel
70 CFLAGS
= -I
$(srcdir)/..
/..
/include -I.
--std-c23
72 all: $(PORTDIR
)/$(LIB
)
74 $(PORTDIR
)/$(LIB
): $(OBJ
) $(HC08OBJECTS
) Makefile
76 ifeq ($(LIB_TYPE
), SDCCLIB
)
77 $(top_builddir
)/bin
/sdcclib
-a
$@
$(OBJ
) $(HC08OBJECTS
)
79 ifeq ($(LIB_TYPE
), AR
)
80 $(SDAR
) -rcSD
$@
$(OBJ
) $(HC08OBJECTS
)
82 ifeq ($(LIB_TYPE
), RANLIB
)
83 $(SDAR
) -rcD
$@
$(OBJ
) $(HC08OBJECTS
)
85 for i in
$(basename $(OBJ
) $(HC08OBJECTS
)); do echo
$$i >>$@
; done
86 cp
$(OBJ
) $(HC08OBJECTS
) $(PORTDIR
)
92 rm -f
*.rel
*.sym
*.lst
*~
$(CLEANSPEC
) *.dump
* *.asm
*.lib
97 Makefile
: $(srcdir)/Makefile.in
98 cd
$(top_builddir
); .
/config.status device
/lib
/s08
/Makefile