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 runing test
41 # ---------------------------------------------------
42 install: all installdirs
43 $(CP) -r asm *.h $(sdcc_includedir)
46 # Deleting all the installed files
47 # --------------------------------
49 rm -rf $(sdcc_includedir)
52 # Performing self-test
53 # --------------------
57 # Performing installation test
58 # ----------------------------
62 # Creating installation directories
63 # ---------------------------------
65 [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir)
68 # Creating dependencies
69 # ---------------------
73 # $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
82 # Remaking configuration
83 # ----------------------
85 @if [ -f $(PRJDIR)/devel ]; then\
86 $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \
90 # End of main_in.mk/main.mk