5 top_builddir
= @top_builddir@
6 abs_top_builddir
= @abs_top_builddir@
10 EXTRA_CFLAGS
= -mpdk15
--max-allocs-per-node
25000
11 SAS
= $(top_builddir
)/bin
/sdaspdk15
13 # override PORTDIR defined by super (parent) makefile
14 override PORTDIR
= ..
/build
/pdk15
16 include $(srcdir)/..
/incl.mk
18 PDK15_FLOAT
= $(COMMON_FLOAT
)
20 PDK15_INT
= $(COMMON_INT
) \
32 PDK15_LONG
= $(COMMON_LONG
) \
36 PDK15_LONGLONG
= $(COMMON_LONGLONG
) \
47 PDK15_SDCC
= $(COMMON_SDCC
) \
63 PDK15SOURCES
= $(addprefix ..
/,$(PDK15_FLOAT
) $(PDK15_INT
) $(PDK15_LONG
) $(PDK15_LONGLONG
) $(PDK15_SDCC
))
64 PDK15OBJECTS
= $(patsubst %.c
,%.rel
,$(PDK15_FLOAT
) $(PDK15_INT
) $(PDK15_LONG
) $(PDK15_LONGLONG
) $(PDK15_SDCC
))
66 OBJ
= __gptrget.rel __gptrget2.rel heap.rel __setjmp.rel _muluchar.rel
72 CFLAGS
= -I
$(srcdir)/..
/..
/include -I.
--std-c23
74 all: $(PORTDIR
)/$(LIB
)
76 $(PORTDIR
)/$(LIB
): $(OBJ
) $(PDK15OBJECTS
) Makefile
77 ifeq ($(LIB_TYPE
), SDCCLIB
)
79 $(top_builddir
)/bin
/sdcclib
-a
$@
$(OBJ
) $(PDK15OBJECTS
)
81 ifeq ($(LIB_TYPE
), AR
)
82 $(SDAR
) -rcSD
$@
$(OBJ
) $(PDK15OBJECTS
)
84 ifeq ($(LIB_TYPE
), RANLIB
)
85 $(SDAR
) -rcD
$@
$(OBJ
) $(PDK15OBJECTS
)
88 for i in
$(basename $(OBJ
) $(PDK15OBJECTS
)); do echo
$$i >>$@
; done
89 cp
$(OBJ
) $(PDK15OBJECTS
) $(PORTDIR
)
95 @
# TODO: sdas should place it\'s output in the current dir
96 test $(srcdir) = . || cp
$< .
97 -$(AS
) $(ASFLAGS
) $(notdir $<)
98 test $(srcdir) = . ||
rm $(notdir $<)
101 rm -f
*.rel
*.sym
*.lst
*~
$(CLEANSPEC
) *.dump
* *.asm
*.lib
106 Makefile
: $(srcdir)/Makefile.in
107 cd
$(top_builddir
); .
/config.status device
/lib
/pdk15
/Makefile