5 top_builddir
= @top_builddir@
6 abs_top_builddir
= @abs_top_builddir@
10 EXTRA_CFLAGS
= -mhc08
--max-allocs-per-node
25000
11 SAS
= $(top_builddir
)/bin
/sdas6808
13 # override PORTDIR defined by super (parent) makefile
14 override PORTDIR
= ..
/build
/hc08
16 include $(srcdir)/..
/incl.mk
18 HC08_FLOAT
= $(COMMON_FLOAT
)
20 HC08_INT
= $(COMMON_INT
) \
26 HC08_LONG
= $(COMMON_LONG
) \
30 HC08_LONGLONG
= $(COMMON_LONGLONG
) \
41 HC08_SDCC
= $(COMMON_SDCC
) \
59 HC08SOURCES
= $(addprefix ..
/,$(HC08_FLOAT
) $(HC08_INT
) $(HC08_LONG
) $(HC08_LONGLONG
) $(HC08_SDCC
))
60 HC08OBJECTS
= $(patsubst %.c
,%.rel
,$(HC08_FLOAT
) $(HC08_INT
) $(HC08_LONG
) $(HC08_LONGLONG
) $(HC08_SDCC
))
62 OBJ
= _ret.rel _mulint.rel _setjmp.rel atomic_flag_test_and_set.rel
68 CFLAGS
= -I
$(srcdir)/..
/..
/include -I.
--std-c23
70 all: $(PORTDIR
)/$(LIB
)
72 $(PORTDIR
)/$(LIB
): $(OBJ
) $(HC08OBJECTS
) Makefile
73 ifeq ($(LIB_TYPE
), SDCCLIB
)
75 $(top_builddir
)/bin
/sdcclib
-a
$@
$(OBJ
) $(HC08OBJECTS
)
77 ifeq ($(LIB_TYPE
), AR
)
78 $(SDAR
) -rcSD
$@
$(OBJ
) $(HC08OBJECTS
)
80 ifeq ($(LIB_TYPE
), RANLIB
)
81 $(SDAR
) -rcD
$@
$(OBJ
) $(HC08OBJECTS
)
84 for i in
$(basename $(OBJ
) $(HC08OBJECTS
)); do echo
$$i >>$@
; done
85 cp
$(OBJ
) $(HC08OBJECTS
) $(PORTDIR
)
91 $(CC
) $(CFLAGS
) ${EXTRA_CFLAGS} -c
$<
94 $(CC
) $(CFLAGS
) ${EXTRA_CFLAGS} -c
$<
97 rm -f
*.rel
*.sym
*.lst
*~
$(CLEANSPEC
) *.dump
* *.asm
*.lib
102 Makefile
: $(srcdir)/Makefile.in
103 cd
$(top_builddir
); .
/config.status device
/lib
/hc08
/Makefile