6 VERSIONHI
= @VERSIONHI@
7 VERSIONLO
= @VERSIONLO@
17 top_builddir
= @top_builddir@
18 top_srcdir
= @top_srcdir@
22 exec_prefix = @
exec_prefix@
26 datarootdir
= @datarootdir@
27 includedir = @
includedir@
29 man1dir = $(mandir)/man1
30 man2dir = $(mandir)/man2
37 CPPFLAGS
= @CPPFLAGS@
-DSDCDB
-DNOICE
-DINDEXLIB
-I.
-I
$(srcdir) -I
$(srcdir)/..
/asxxsrc
-I
$(srcdir)/..
/..
/support
/util
38 CFLAGS
= @CFLAGS@ @WALL_FLAG@
$(CPPFLAGS
)
44 UTILLIB
= $(srcdir)/..
/..
/support
/util
45 UTILSRC
= dbuf.c dbuf_string.c
46 UTILLIBOBJS
= $(UTILSRC
:%.c
=$(OBJDIR
)/%.o
)
48 ASXXLIB
= $(srcdir)/..
/asxxsrc
49 ASXXLIBSRC
= asdbg.c asdata.c asexpr.c aslex.c aslist.c asmain.c asout.c assubr.c assym.c asmcro.c sdas.c strcmpi.c
50 ASXXLIBOBJS
= $(ASXXLIBSRC
:%.c
=$(OBJDIR
)/%.o
)
52 SRC
= m08pst.c m08mch.c m08adr.c
53 OBJS
= $(SRC
:%.c
=$(OBJDIR
)/%.o
)
55 ASSOURCES
= $(SRC
) $(ASXXLIBSRC
:%.c
=$(ASXXLIB
)/%.c
) $(UTILSRC
:%.c
=$(UTILLIB
)/%.c
)
57 ASOBJECTS
= $(OBJS
) $(ASXXLIBOBJS
) $(UTILLIBOBJS
)
59 ASX
= $(top_builddir
)/bin
/sdas6808
$(EXEEXT
)
60 #DEST = $(DESTDIR)$(bindir)/sdas6808$(EXEEXT)
62 DESTPATH
= $(DESTDIR
)$(bindir)/
64 transform
= @program_transform_name@
66 # Compiling entire program or any subproject
67 # ------------------------------------------
71 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$(ASOBJECTS
) $(LIBS
)
73 # Compiling and installing everything and running test
74 # ----------------------------------------------------
75 install: all installdirs
76 $(INSTALL
) $(ASX
) $(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
77 $(STRIP
) $(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
79 # Deleting all the installed files
80 # --------------------------------
82 rm -f
$(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
85 # Performing self-test
86 # --------------------
90 # Performing installation test
91 # ----------------------------
95 # Creating installation directories
96 # ---------------------------------
98 $(INSTALL
) -d
$(DESTDIR
)$(bindir)
101 # Creating dependencies
102 # ---------------------
103 SPECIAL
= $(srcdir)/*.h
104 include $(srcdir)/clean.mk
110 touch
$(OBJDIR
)/.stamp
112 $(OBJDIR
)/%.o
: %.c
$(OBJDIR
)/.stamp
113 $(CC
) -c
$(CFLAGS
) -o
$@
$<
115 $(OBJDIR
)/%.o
: $(ASXXLIB
)/%.c
$(OBJDIR
)/.stamp
116 $(CC
) -c
$(CFLAGS
) -o
$@
$<
118 $(OBJDIR
)/%.o
: $(UTILLIB
)/%.c
$(OBJDIR
)/.stamp
119 $(CC
) -c
$(CFLAGS
) -o
$@
$<
122 # Remaking configuration
123 # ----------------------
125 @if
[ -f
$(top_builddir
)/devel
]; then\
126 $(MAKE
) -f ..
/conf.mk
srcdir="$(srcdir)" top_builddir
="$(top_builddir)" freshconf
;\