6 VERSIONHI = @VERSIONHI@
7 VERSIONLO = @VERSIONLO@
18 exec_prefix = @exec_prefix@
22 sdcc_datadir = @sdcc_datadir@
23 includedir = @includedir@
25 man1dir = $(mandir)/man1
26 man2dir = $(mandir)/man2
30 CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR)
33 # Compiling entire program or any subproject
34 # ------------------------------------------
37 # Compiling and installing everything and runing test
38 # ---------------------------------------------------
39 install: all installdirs
40 $(CP) -r asm *.h $(sdcc_datadir)/include/
43 # Deleting all the installed files
44 # --------------------------------
46 rm -rf $(sdcc_datadir)/include
49 # Performing self-test
50 # --------------------
54 # Performing installation test
55 # ----------------------------
59 # Creating installation directories
60 # ---------------------------------
62 [ -d $(sdcc_datadir)/include ] || mkdir -p $(sdcc_datadir)/include
65 # Creating dependencies
66 # ---------------------
70 # $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep
79 # Remaking configuration
80 # ----------------------
82 @if [ -f $(PRJDIR)/devel ]; then\
83 $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \
87 # End of main_in.mk/main.mk