5 top_builddir
= @top_builddir@
6 abs_top_builddir
= @abs_top_builddir@
10 EXTRA_CFLAGS
= -mpdk13
--max-allocs-per-node
25000
11 SAS
= $(top_builddir
)/bin
/sdaspdk13
13 # override PORTDIR defined by super (parent) makefile
14 override PORTDIR
= ..
/build
/pdk13
17 @
# TODO: sdas should place it\'s output in the current dir
18 test $(srcdir) = . || cp
$< .
19 -$(AS
) $(ASFLAGS
) $(notdir $<)
20 test $(srcdir) = . ||
rm $(notdir $<)
22 include $(srcdir)/..
/incl.mk
24 PDK13_FLOAT
= $(COMMON_FLOAT
)
26 PDK13_INT
= $(COMMON_INT
) \
38 PDK13_LONG
= $(COMMON_LONG
) \
42 PDK13_LONGLONG
= $(COMMON_LONGLONG
) \
53 PDK13_SDCC
= $(COMMON_SDCC
) \
69 PDK13SOURCES
= $(addprefix ..
/,$(PDK13_FLOAT
) $(PDK13_INT
) $(PDK13_LONG
) $(PDK13_LONGLONG
) $(PDK13_SDCC
))
70 PDK13OBJECTS
= $(patsubst %.c
,%.rel
,$(PDK13_FLOAT
) $(PDK13_INT
) $(PDK13_LONG
) $(PDK13_LONGLONG
) $(PDK13_SDCC
))
72 OBJ
= __gptrget.rel __gptrget2.rel heap.rel __setjmp.rel _muluchar.rel
78 CFLAGS
= -I
$(srcdir)/..
/..
/include -I.
--std-c23
80 all: $(PORTDIR
)/$(LIB
)
82 $(PORTDIR
)/$(LIB
): $(OBJ
) $(PDK13OBJECTS
) Makefile
83 ifeq ($(LIB_TYPE
), SDCCLIB
)
85 $(top_builddir
)/bin
/sdcclib
-a
$@
$(OBJ
) $(PDK13OBJECTS
)
87 ifeq ($(LIB_TYPE
), AR
)
88 $(SDAR
) -rcSD
$@
$(OBJ
) $(PDK13OBJECTS
)
90 ifeq ($(LIB_TYPE
), RANLIB
)
91 $(SDAR
) -rcD
$@
$(OBJ
) $(PDK13OBJECTS
)
94 for i in
$(basename $(OBJ
) $(PDK13OBJECTS
)); do echo
$$i >>$@
; done
95 cp
$(OBJ
) $(PDK13OBJECTS
) $(PORTDIR
)
101 rm -f
*.rel
*.sym
*.lst
*~
$(CLEANSPEC
) *.dump
* *.asm
*.lib
106 Makefile
: $(srcdir)/Makefile.in
107 cd
$(top_builddir
); .
/config.status device
/lib
/pdk13
/Makefile