struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / lib / tlcs90 / Makefile.in
blob01509d87c68902c9bd5f4aa655563cca30725723
1 # libc/tlcs90 Makefile
3 VPATH = @srcdir@
4 srcdir = @srcdir@
5 top_builddir = @top_builddir@
6 abs_top_builddir = @abs_top_builddir@
8 LIB_TYPE = @LIB_TYPE@
10 EXTRA_CFLAGS = -mtlcs90 --max-allocs-per-node 25000
11 SAS = $(top_builddir)/bin/sdastlcs90
13 # override PORTDIR defined by super (parent) makefile
14 override PORTDIR = ../build/tlcs90
16 %.rel: %.s
17 @# TODO: sdas should place it\'s output in the current dir
18 test $(srcdir) = . || cp $< .
19 -$(AS) $(ASFLAGS) -I$(dir $<) $(notdir $<)
20 test $(srcdir) = . || rm $(notdir $<)
22 include $(srcdir)/../incl.mk
24 Z80_FLOAT = $(COMMON_FLOAT)
26 Z80_INT = $(COMMON_INT)
28 Z80_LONG = $(COMMON_LONG) \
29 _divulong.c \
30 _mullong.c
32 Z80_LONGLONG = $(COMMON_LONGLONG) \
33 _mullonglong.c \
34 _divslonglong.c \
35 _divulonglong.c \
36 _modslonglong.c \
37 _modulonglong.c
39 Z80_SDCC = $(COMMON_SDCC) \
40 __itoa.c \
41 __ltoa.c \
42 _startup.c \
43 div.c \
44 ldiv.c \
45 lldiv.c \
46 sprintf.c \
47 vprintf.c \
48 strnlen.c \
49 _strcmp.c \
50 atomic_flag_clear.c
52 Z80SOURCES = $(addprefix ../,$(Z80_FLOAT) $(Z80_INT) $(Z80_LONG) $(Z80_LONGLONG) $(Z80_SDCC))
53 Z8OBJECTS = $(patsubst %.c,%.rel,$(Z80_FLOAT) $(Z80_INT) $(Z80_LONG) $(Z80_LONGLONG) $(Z80_SDCC))
55 OBJ = divunsigned.rel divsigned.rel divmixed.rel modunsigned.rel modsigned.rel modmixed.rel mul.rel mulchar.rel \
56 heap.rel strcpy.rel strlen.rel abs.rel __sdcc_call_hl.rel __sdcc_call_iy.rel crtenter.rel memcpy.rel \
57 setjmp.rel memmove.rel atomic_flag_test_and_set.rel
59 LIB = tlcs90.lib
60 AS = $(SAS)
61 ASFLAGS = -plosgff
63 CFLAGS = -I$(srcdir)/../../include -I. --std-c23
65 all: $(PORTDIR)/$(LIB) $(PORTDIR)/crt0.rel
67 $(PORTDIR)/crt0.rel: crt0.rel
68 cp crt0.rel $(PORTDIR)/crt0.rel
70 Makefile: $(srcdir)/Makefile.in
71 cd $(top_builddir); ./config.status device/lib/tlcs90/Makefile
73 $(PORTDIR)/$(LIB): $(OBJ) $(Z8OBJECTS) Makefile
74 rm -f $@
75 ifeq ($(LIB_TYPE), SDCCLIB)
76 $(top_builddir)/bin/sdcclib -a $@ $(OBJ) $(Z8OBJECTS)
77 else
78 ifeq ($(LIB_TYPE), AR)
79 $(SDAR) -rcSD $@ $(OBJ) $(Z8OBJECTS)
80 else
81 ifeq ($(LIB_TYPE), RANLIB)
82 $(SDAR) -rcD $@ $(OBJ) $(Z8OBJECTS)
83 else
84 for i in $(basename $(OBJ) $(Z8OBJECTS)); do echo $$i >>$@; done
85 cp $(OBJ) $(Z8OBJECTS) $(PORTDIR)
86 endif
87 endif
88 endif
90 clean:
91 rm -f *.rel *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib
93 distclean: clean
94 rm -f Makefile
96 Makefile: $(srcdir)/Makefile.in
97 cd $(top_builddir); ./config.status device/lib/tlcs90/Makefile