# # # VERSION = @VERSION@ VERSIONHI = @VERSIONHI@ VERSIONLO = @VERSIONLO@ VERSIONP = @VERSIONP@ SHELL = /bin/sh CPP = @CPP@ INSTALL = @INSTALL@ CP = @CP@ PRJDIR = .. prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ includedir = @includedir@ mandir = @mandir@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ include_dir_suffix = @include_dir_suffix@ sdcc_includedir = $(datadir)/$(include_dir_suffix) CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) # Compiling entire program or any subproject # ------------------------------------------ all: # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs $(CP) asm/*/features.h *.h $(sdcc_includedir) # Deleting all the installed files # -------------------------------- uninstall: rm -rf $(sdcc_includedir) # Performing self-test # -------------------- check: # Performing installation test # ---------------------------- installcheck: # Creating installation directories # --------------------------------- installdirs: [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir) # Creating dependencies # --------------------- dep: #Makefile.dep #Makefile.dep: # $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep #include Makefile.dep include clean.mk # My rules # -------- # Remaking configuration # ---------------------- checkconf: @if [ -f $(PRJDIR)/devel ]; then\ $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \ freshconf;\ fi # End of main_in.mk/main.mk