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)/..
/aspdk
-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 ASPDKLIB
= $(srcdir)/..
/aspdk
53 ASPDKLIBSRC
= pdkmch.c pdkadr.c
54 ASPDKLIBOBJS
= $(ASPDKLIBSRC
:%.c
=$(OBJDIR
)/%.o
)
57 SRC
= pdk16pst.c pdk16mch.c
58 OBJS
= $(SRC
:%.c
=$(OBJDIR
)/%.o
)
60 ASSOURCES
= $(SRC
) $(ASXXLIBSRC
:%.c
=$(ASXXLIB
)/%.c
) $(ASPDKLIBSRC
:%.c
=$(ASPDKLIB
)/%.c
) $(UTILSRC
:%.c
=$(UTILLIB
)/%.c
)
62 ASOBJECTS
= $(OBJS
) $(ASXXLIBOBJS
) $(ASPDKLIBOBJS
) $(UTILLIBOBJS
)
64 ASX
= $(top_builddir
)/bin
/sdaspdk16
$(EXEEXT
)
65 #DEST = $(DESTDIR)$(bindir)/sdaspdk16$(EXEEXT)
67 DESTPATH
= $(DESTDIR
)$(bindir)/
69 transform
= @program_transform_name@
71 # Compiling entire program or any subproject
72 # ------------------------------------------
76 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$(ASOBJECTS
) $(LIBS
)
78 # Compiling and installing everything and running test
79 # ----------------------------------------------------
80 install: all installdirs
81 $(INSTALL
) $(ASX
) $(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
82 $(STRIP
) $(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
84 # Deleting all the installed files
85 # --------------------------------
87 rm -f
$(DESTPATH
)`echo $(DEST)|sed '$(transform)'`$(EXEEXT
)
90 # Performing self-test
91 # --------------------
95 # Performing installation test
96 # ----------------------------
100 # Creating installation directories
101 # ---------------------------------
103 $(INSTALL
) -d
$(DESTDIR
)$(bindir)
106 # Creating dependencies
107 # ---------------------
108 SPECIAL
= $(srcdir)/*.h
109 include $(srcdir)/clean.mk
115 touch
$(OBJDIR
)/.stamp
117 $(OBJDIR
)/%.o
: %.c
$(OBJDIR
)/.stamp
118 $(CC
) -c
$(CFLAGS
) -o
$@
$<
120 $(OBJDIR
)/%.o
: $(ASXXLIB
)/%.c
$(OBJDIR
)/.stamp
121 $(CC
) -c
$(CFLAGS
) -o
$@
$<
123 $(OBJDIR
)/%.o
: $(ASPDKLIB
)/%.c
$(OBJDIR
)/.stamp
124 $(CC
) -c
$(CFLAGS
) -o
$@
$<
126 $(OBJDIR
)/%.o
: $(UTILLIB
)/%.c
$(OBJDIR
)/.stamp
127 $(CC
) -c
$(CFLAGS
) -o
$@
$<
130 # Remaking configuration
131 # ----------------------
133 @if
[ -f
$(top_builddir
)/devel
]; then\
134 $(MAKE
) -f ..
/conf.mk
srcdir="$(srcdir)" top_builddir
="$(top_builddir)" freshconf
;\