ec5408fac01cb2cd52789c8d2041a55319981eb5
[fw/sdcc] / device / include / Makefile.in
1 #
2 #
3 #
4
5 VERSION         = @VERSION@
6 VERSIONHI       = @VERSIONHI@
7 VERSIONLO       = @VERSIONLO@
8 VERSIONP        = @VERSIONP@
9
10 SHELL           = /bin/sh
11 CPP             = @CPP@
12 INSTALL         = @INSTALL@
13 CP              = @CP@
14
15 PRJDIR          = ..
16
17 prefix          = @prefix@
18 exec_prefix     = @exec_prefix@
19 bindir          = @bindir@
20 libdir          = @libdir@
21 datadir         = @datadir@
22 includedir      = @includedir@
23 mandir          = @mandir@
24 man1dir         = $(mandir)/man1
25 man2dir         = $(mandir)/man2
26 infodir         = @infodir@
27 srcdir          = @srcdir@
28
29 include_dir_suffix = @include_dir_suffix@
30
31 sdcc_includedir    = $(datadir)/$(include_dir_suffix)
32
33 CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
34
35
36 # Compiling entire program or any subproject
37 # ------------------------------------------
38 all:
39
40 # Compiling and installing everything and running test
41 # ----------------------------------------------------
42 install: all installdirs
43         $(CP) -r asm *.h $(sdcc_includedir)
44         find $(sdcc_includedir) -type d -name 'CVS' -exec rm {} \;
45
46
47 # Deleting all the installed files
48 # --------------------------------
49 uninstall:
50         rm -rf $(sdcc_includedir)
51
52
53 # Performing self-test
54 # --------------------
55 check:
56
57
58 # Performing installation test
59 # ----------------------------
60 installcheck:
61
62
63 # Creating installation directories
64 # ---------------------------------
65 installdirs:
66         [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir)
67
68
69 # Creating dependencies
70 # ---------------------
71 dep: #Makefile.dep
72
73 #Makefile.dep:
74 #       $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
75
76 #include Makefile.dep
77 include clean.mk
78
79 # My rules
80 # --------
81
82
83 # Remaking configuration
84 # ----------------------
85 checkconf:
86         @if [ -f $(PRJDIR)/devel ]; then\
87           $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \
88           freshconf;\
89         fi
90
91 # End of main_in.mk/main.mk
92