Re-worked the makefiles and includes to target z80 and gbz80 as well
[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 sdcc_datadir    = @sdcc_datadir@
23 includedir      = @includedir@
24 mandir          = @mandir@
25 man1dir         = $(mandir)/man1
26 man2dir         = $(mandir)/man2
27 infodir         = @infodir@
28 srcdir          = @srcdir@
29
30 CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
31
32
33 # Compiling entire program or any subproject
34 # ------------------------------------------
35 all:
36
37
38 # Compiling and installing everything and runing test
39 # ---------------------------------------------------
40 install: all installdirs
41         $(CP) -r asm *.h $(sdcc_datadir)/include/
42
43
44 # Deleting all the installed files
45 # --------------------------------
46 uninstall:
47         for hdr in *.h; do rm -f $(sdcc_datadir)/$$hdr; done
48
49
50 # Performing self-test
51 # --------------------
52 check:
53
54
55 # Performing installation test
56 # ----------------------------
57 installcheck:
58
59
60 # Creating installation directories
61 # ---------------------------------
62 installdirs:
63         [ -d $(sdcc_datadir)/include ] || mkdir -p $(sdcc_datadir)/include
64
65
66 # Creating dependencies
67 # ---------------------
68 dep: #Makefile.dep
69
70 #Makefile.dep:
71 #       $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
72
73 #include Makefile.dep
74 include clean.mk
75
76 # My rules
77 # --------
78
79
80 # Remaking configuration
81 # ----------------------
82 checkconf:
83         @if [ -f $(PRJDIR)/devel ]; then\
84           $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \
85           freshconf;\
86         fi
87
88 # End of main_in.mk/main.mk
89