struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / sdas / as6808 / Makefile.in
blob469380ece6a21ff467a184e5399406fcc5f4791d
5 VERSION = @VERSION@
6 VERSIONHI = @VERSIONHI@
7 VERSIONLO = @VERSIONLO@
8 VERSIONP = @VERSIONP@
10 SHELL = /bin/sh
11 CC = @CC@
12 CPP = @CPP@
13 INSTALL = @INSTALL@
14 STRIP = @STRIP@
15 MAKEDEP = @MAKEDEP@
17 top_builddir = @top_builddir@
18 top_srcdir = @top_srcdir@
20 srcdir = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23 bindir = @bindir@
24 libdir = @libdir@
25 datadir = @datadir@
26 datarootdir = @datarootdir@
27 includedir = @includedir@
28 mandir = @mandir@
29 man1dir = $(mandir)/man1
30 man2dir = $(mandir)/man2
31 infodir = @info@
33 EXEEXT = @EXEEXT@
35 VPATH = @srcdir@
37 CPPFLAGS = @CPPFLAGS@ -DSDCDB -DNOICE -DINDEXLIB -I. -I$(srcdir) -I$(srcdir)/../asxxsrc -I$(srcdir)/../../support/util
38 CFLAGS = @CFLAGS@ @WALL_FLAG@ $(CPPFLAGS)
39 LDFLAGS = @LDFLAGS@
40 LIBS = -lm
42 OBJDIR = obj
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)
61 DEST = sdas6808
62 DESTPATH = $(DESTDIR)$(bindir)/
64 transform = @program_transform_name@
66 # Compiling entire program or any subproject
67 # ------------------------------------------
68 all: checkconf $(ASX)
70 $(ASX): $(ASOBJECTS)
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 # --------------------------------
81 uninstall:
82 rm -f $(DESTPATH)`echo $(DEST)|sed '$(transform)'`$(EXEEXT)
85 # Performing self-test
86 # --------------------
87 check:
90 # Performing installation test
91 # ----------------------------
92 installcheck:
95 # Creating installation directories
96 # ---------------------------------
97 installdirs:
98 $(INSTALL) -d $(DESTDIR)$(bindir)
101 # Creating dependencies
102 # ---------------------
103 SPECIAL = $(srcdir)/*.h
104 include $(srcdir)/clean.mk
106 # My rules
107 # --------
108 $(OBJDIR)/.stamp:
109 mkdir -p $(OBJDIR)
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 # ----------------------
124 checkconf:
125 @if [ -f $(top_builddir)/devel ]; then\
126 $(MAKE) -f ../conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
129 # End of Makefile