* as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
[fw/sdcc] / main_in.mk
1 #
2 #
3 #
4
5 # Version
6 VERSION         = @VERSION@
7 VERSIONHI       = @VERSIONHI@
8 VERSIONLO       = @VERSIONLO@
9 VERSIONP        = @VERSIONP@
10
11 # Programs
12 SHELL           = /bin/sh
13 CC              = @CC@
14 CPP             = @CPP@
15 RANLIB          = @RANLIB@
16 INSTALL         = @INSTALL@
17 AUTOCONF        = @AUTOCONF@
18
19 # Directories
20 PRJDIR          = .
21
22 prefix          = @prefix@
23 exec_prefix     = @exec_prefix@
24 bindir          = @bindir@
25 libdir          = @libdir@
26 datadir         = @datadir@
27 datarootdir     = @datarootdir@
28 includedir      = @includedir@
29 mandir          = @mandir@
30 man1dir         = $(mandir)/man1
31 man2dir         = $(mandir)/man2
32 infodir         = @infodir@
33 srcdir          = @srcdir@
34
35 # Flags
36 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
37 CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
38 CFLAGS          = @CFLAGS@
39 M_OR_MM         = @M_OR_MM@
40
41
42 # Compiling entire program or any subproject
43 # ------------------------------------------
44 all: checkconf
45
46
47 # Compiling and installing everything and runing test
48 # ---------------------------------------------------
49 install: all installdirs
50
51
52 # Deleting all the installed files
53 # --------------------------------
54 uninstall:
55
56
57 # Performing self-test
58 # --------------------
59 check:
60
61
62 # Performing installation test
63 # ----------------------------
64 installcheck:
65
66
67 # Creating installation directories
68 # ---------------------------------
69 installdirs:
70
71
72 # Creating dependencies
73 # ---------------------
74 dep: #main.dep
75
76 #main.dep: *.c *.h
77 #       $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
78
79 #-include main.dep
80 include $(srcdir)/clean.mk
81
82 # My rules
83 # --------
84 .c.o:
85         $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
86
87 .y.c:
88         rm -f $*.cc $*.h
89         $(YACC) -d $<
90         mv y.tab.c $*.cc
91         mv y.tab.h $*.h
92
93 .l.c:
94         rm -f $*.cc
95         $(LEX) -t $< >$*.cc
96
97
98 # Remaking configuration
99 # ----------------------
100 checkconf:
101         @if [ -f $(PRJDIR)/devel ]; then\
102           $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" freshconf;\
103         fi
104
105 # End of main_in.mk/main.mk
106