6 VERSIONHI = @VERSIONHI@
7 VERSIONLO = @VERSIONLO@
18 exec_prefix = @exec_prefix@
22 includedir = @includedir@
24 man1dir = $(mandir)/man1
25 man2dir = $(mandir)/man2
29 include_dir_suffix = @include_dir_suffix@
31 sdcc_includedir = $(datadir)/$(include_dir_suffix)
33 CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR)
36 # Compiling entire program or any subproject
37 # ------------------------------------------
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 {} \;
47 # Deleting all the installed files
48 # --------------------------------
50 rm -rf $(sdcc_includedir)
53 # Performing self-test
54 # --------------------
58 # Performing installation test
59 # ----------------------------
63 # Creating installation directories
64 # ---------------------------------
66 [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir)
69 # Creating dependencies
70 # ---------------------
74 # $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
83 # Remaking configuration
84 # ----------------------
86 @if [ -f $(PRJDIR)/devel ]; then\
87 $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \
91 # End of main_in.mk/main.mk