struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / sdas / aspdk16 / Makefile.in
blobfbbd84dd121b989608c8b888af8a5a6bd7243e0a
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)/../aspdk -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 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)
66 DEST = sdaspdk16
67 DESTPATH = $(DESTDIR)$(bindir)/
69 transform = @program_transform_name@
71 # Compiling entire program or any subproject
72 # ------------------------------------------
73 all: checkconf $(ASX)
75 $(ASX): $(ASOBJECTS)
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 # --------------------------------
86 uninstall:
87 rm -f $(DESTPATH)`echo $(DEST)|sed '$(transform)'`$(EXEEXT)
90 # Performing self-test
91 # --------------------
92 check:
95 # Performing installation test
96 # ----------------------------
97 installcheck:
100 # Creating installation directories
101 # ---------------------------------
102 installdirs:
103 $(INSTALL) -d $(DESTDIR)$(bindir)
106 # Creating dependencies
107 # ---------------------
108 SPECIAL = $(srcdir)/*.h
109 include $(srcdir)/clean.mk
111 # My rules
112 # --------
113 $(OBJDIR)/.stamp:
114 mkdir -p $(OBJDIR)
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 # ----------------------
132 checkconf:
133 @if [ -f $(top_builddir)/devel ]; then\
134 $(MAKE) -f ../conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
137 # End of Makefile