* */Makefile.in: removed annoying warning:
[fw/sdcc] / as / mcs51 / 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 -DINDEXLIB
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                   i51ext.o i51pst.o i51mch.o i51adr.o \
44                   ../strcmpi.o
45 ASSOURCES       = $(patsubst %.o,%.c,$(ASOBJECTS))
46
47 ASX8051         = $(top_builddir)/bin/asx8051$(EXEEXT)
48
49 transform       = @program_transform_name@
50
51 # Compiling entire program or any subproject
52 # ------------------------------------------
53 all: checkconf $(ASX8051)
54
55 $(ASX8051): $(ASOBJECTS)
56         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
57
58 # Compiling and installing everything and running test
59 # ----------------------------------------------------
60 install: all installdirs
61         $(INSTALL) $(ASX8051) `echo $(DESTDIR)$(bindir)/asx8051$(EXEEXT)|sed '$(transform)'`
62         $(STRIP) `echo $(DESTDIR)$(bindir)/asx8051$(EXEEXT)|sed '$(transform)'`
63
64 # Deleting all the installed files
65 # --------------------------------
66 uninstall:
67         rm -f $(DESTDIR)$(bindir)/asx8051$(EXEEXT)
68
69
70 # Performing self-test
71 # --------------------
72 check:
73
74
75 # Performing installation test
76 # ----------------------------
77 installcheck:
78
79
80 # Creating installation directories
81 # ---------------------------------
82 installdirs:
83         $(INSTALL) -d $(DESTDIR)$(bindir)
84
85
86 # Creating dependencies
87 # ---------------------
88 dep: Makefile.dep
89
90 Makefile.dep: $(ASSOURCES) $(srcdir)/*.h $(top_builddir)/*.h $(top_srcdir)/*.h
91         $(CPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.c,$^) >Makefile.dep
92
93 ifeq "$(findstring $(MAKECMDGOALS),uninstall check installcheck installdirs \
94                                    clean distclean mostlyclean realclean)" ""
95   -include Makefile.dep
96 endif
97 include $(srcdir)/clean.mk
98
99 # My rules
100 # --------
101 .c.o:
102         $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
103
104
105 # Remaking configuration
106 # ----------------------
107 checkconf:
108         @if [ -f $(top_builddir)/devel ]; then\
109           $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
110         fi
111
112 # End of Makefile