* configure.in: added missing mcs51 in status output
[fw/sdcc] / as / hc08 / Makefile.in
1 #
2 #
3 #
4
5 VERSION         = @VERSION@
6 VERSIONHI       = @VERSIONHI@
7 VERSIONLO       = @VERSIONLO@
8 VERSIONP        = @VERSIONP@
9
10 SHELL           = /bin/sh
11 CC              = @CC@
12 CPP             = @CPP@
13 INSTALL         = @INSTALL@
14 STRIP           = @STRIP@
15
16 top_builddir    = @top_builddir@
17 top_srcdir      = @top_srcdir@
18
19 srcdir          = @srcdir@
20 prefix          = @prefix@
21 exec_prefix     = @exec_prefix@
22 bindir          = @bindir@
23 libdir          = @libdir@
24 datadir         = @datadir@
25 datarootdir     = @datarootdir@
26 includedir      = @includedir@
27 mandir          = @mandir@
28 man1dir         = $(mandir)/man1
29 man2dir         = $(mandir)/man2
30 infodir         = @info@
31
32 EXEEXT          = @EXEEXT@
33
34 VPATH           = @srcdir@
35
36 CPPFLAGS        = @CPPFLAGS@ -I. -I$(srcdir)
37 CFLAGS          = @CFLAGS@ -Wall
38 M_OR_MM         = @M_OR_MM@
39 LDFLAGS         = @LDFLAGS@
40
41 ASOBJECTS       = asmain.o aslex.o assym.o assubr.o asnoice.o \
42                   asexpr.o asdata.o aslist.o asout.o asstore.o \
43                   m08ext.o m08pst.o m08mch.o m08adr.o strcmpi.o
44 ASSOURCES       = $(patsubst %.o,%.c,$(ASOBJECTS))
45
46 ASHC08          = $(top_builddir)/bin/as-hc08$(EXEEXT)
47
48 transform       = @program_transform_name@
49
50 # Compiling entire program or any subproject
51 # ------------------------------------------
52 all: checkconf $(ASHC08) $(ASLINK)
53
54 $(ASHC08): $(ASOBJECTS)
55         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS) 
56
57 # Compiling and installing everything and runing test
58 # ---------------------------------------------------
59 install: all installdirs
60         $(INSTALL) $(ASHC08) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'`
61         $(STRIP) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'`
62
63 # Deleting all the installed files
64 # --------------------------------
65 uninstall:
66         rm -f $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)
67
68
69 # Performing self-test
70 # --------------------
71 check:
72
73
74 # Performing installation test
75 # ----------------------------
76 installcheck:
77
78
79 # Creating installation directories
80 # ---------------------------------
81 installdirs:
82         $(INSTALL) -d $(DESTDIR)$(bindir)
83
84
85 # Creating dependencies
86 # ---------------------
87 dep: Makefile.dep
88
89 Makefile.dep: $(ASSOURCES) $(srcdir)/*.h $(top_builddir)/*.h $(top_srcdir)/*.h
90         $(CPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.c,$^) >Makefile.dep
91
92 ifeq "$(findstring $(MAKECMDGOALS),uninstall check installcheck installdirs \
93                                    clean distclean mostlyclean realclean)" ""
94   include Makefile.dep
95 endif
96 include $(srcdir)/clean.mk
97
98 # My rules
99 # --------
100 .c.o:
101         $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
102
103
104 # Remaking configuration
105 # ----------------------
106 checkconf:
107         @if [ -f $(top_builddir)/devel ]; then\
108           $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
109         fi
110
111 # End of Makefile