"Fossies" - the Fresh Open Source Software Archive

Member "epm-4.5.1/Makefile.in" (18 Nov 2020, 6767 Bytes) of package /linux/privat/epm-4.5.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 4.5_vs_4.5.1.

    1 #
    2 # Makefile for the ESP Package Manager (EPM).
    3 #
    4 # Copyright © 1999-2020 by Michael R Sweet
    5 # Copyright © 1999-2010 by Easy Software Products, all rights reserved.
    6 #
    7 # This program is free software; you can redistribute it and/or modify
    8 # it under the terms of the GNU General Public License as published by
    9 # the Free Software Foundation; either version 2, or (at your option)
   10 # any later version.
   11 #
   12 # This program is distributed in the hope that it will be useful,
   13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15 # GNU General Public License for more details.
   16 #
   17 
   18 # Programs...
   19 AR		=	@AR@
   20 CC		=	@CC@
   21 CHMOD		=	@CHMOD@
   22 CODE_SIGN	=	@CODE_SIGN@
   23 CP		=	@CP@
   24 CXX		=	@CXX@
   25 FLTKCONFIG	=	@FLTKCONFIG@
   26 INSTALL		=	@INSTALL@
   27 MKDIR		=	@MKDIR@ -p
   28 RANLIB		=	@RANLIB@
   29 RM		=	@RM@ -f
   30 SHELL		=	/bin/sh
   31 STRIP		=	@STRIP@
   32 
   33 
   34 # Program options...
   35 ARFLAGS		=	@ARFLAGS@
   36 ARCHFLAGS	=	@ARCHFLAGS@
   37 ASAN_OPTIONS	=	leak_check_at_exit=false
   38 CFLAGS		=	$(ARCHFLAGS) @CFLAGS@ $(OPTIM)
   39 CODESIGN_IDENTITY =	-
   40 CPPFLAGS	=	@CPPFLAGS@
   41 CSFLAGS		=	-s "$(CODESIGN_IDENTITY)" --timestamp @CSFLAGS@
   42 CXXFLAGS	=	$(ARCHFLAGS) @CXXFLAGS@ $(OPTIM)
   43 GUILIBS		=	@GUILIBS@
   44 LDFLAGS		=	$(ARCHFLAGS) @LDFLAGS@ $(OPTIM)
   45 LIBS		=	@LIBS@
   46 OPTIM		=	@OPTIM@
   47 
   48 
   49 # Directories...
   50 bindir		=	@bindir@
   51 datadir		=	@datadir@
   52 datarootdir	=	@datarootdir@
   53 exec_prefix	=	@exec_prefix@
   54 includedir	=	@includedir@
   55 infodir		=	@infodir@
   56 libdir		=	@libdir@
   57 libexecdir	=	@libexecdir@
   58 localstatedir	=	@localstatedir@
   59 mandir		=	@mandir@
   60 oldincludedir	=	@oldincludedir@
   61 prefix		=	@prefix@
   62 privateinclude	=	@privateinclude@
   63 sbindir		=	@sbindir@
   64 sharedstatedir	=	@sharedstatedir@
   65 srcdir		=	@srcdir@
   66 sysconfdir	=	@sysconfdir@
   67 top_srcdir	=	@top_srcdir@
   68 
   69 BUILDROOT	=	$(DSTROOT)$(RPM_BUILD_ROOT)$(DESTDIR)
   70 VPATH		=	$(srcdir)
   71 
   72 
   73 # Rules...
   74 .SILENT:
   75 
   76 .SUFFIXES:	.c .cxx .h .o
   77 .c.o:
   78 	echo Compiling $<...
   79 	$(CC) $(CFLAGS) $(CPPFLAGS) -I. -I$(srcdir) -c $<
   80 .cxx.o:
   81 	echo Compiling $<...
   82 	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -I. -I$(srcdir) -c $<
   83 
   84 
   85 # Targets...
   86 TARGETS		=	libepm.a \
   87 			epm \
   88 			epminstall \
   89 			mkepmlist \
   90 			@GUIS@
   91 EPM_OBJS	=	bsd.o \
   92 			deb.o \
   93 			dist.o \
   94 			file.o \
   95 			macos.o \
   96 			portable.o \
   97 			qprintf.o \
   98 			rpm.o \
   99 			run.o \
  100 			snprintf.o \
  101 			string.o \
  102 			support.o \
  103 			tar.o
  104 SETUP_OBJS	=	setup.o \
  105 			setup2.o \
  106 			gui-common.o
  107 UNINST_OBJS	=	uninst.o \
  108 			uninst2.o \
  109 			gui-common.o
  110 OBJS		=	epm.o \
  111 			$(EPM_OBJS) \
  112 			epminstall.o \
  113 			mkepmlist.o \
  114 			$(SETUP_OBJS) \
  115 			$(UNINST_OBJS)
  116 
  117 
  118 # Make all targets...
  119 all:	$(TARGETS) Makefile config.h
  120 
  121 
  122 # Clean all generated files...
  123 clean:
  124 	$(RM) $(OBJS)
  125 	$(RM) $(TARGETS)
  126 
  127 
  128 # Clean all generated and configuration files...
  129 distclean:
  130 	$(RM) $(OBJS)
  131 	$(RM) $(TARGETS)
  132 	$(RM) config.cache config.h config.log config.status
  133 	$(RM) Makefile doc/Makefile
  134 	$(RM) epm.list
  135 
  136 
  137 # Install all targets...
  138 install: all @INSTALL_GUIS@ @INSTALL_OSX@
  139 	echo Installing EPM programs in $(BUILDROOT)$(bindir)
  140 	$(INSTALL) -d -m 755 $(BUILDROOT)$(bindir)
  141 	for file in epm epminstall mkepmlist; do \
  142 		$(INSTALL) -c -m 755 $$file $(BUILDROOT)$(bindir); \
  143 	done
  144 	(cd doc; $(MAKE) $(MFLAGS) install)
  145 
  146 install-guis:	setup uninst
  147 	echo Installing EPM setup/uninst in $(BUILDROOT)$(libdir)/epm
  148 	$(INSTALL) -d -m 755 $(BUILDROOT)$(libdir)/epm
  149 	for file in setup uninst; do \
  150 		$(INSTALL) -c -m 755 $$file $(BUILDROOT)$(libdir)/epm; \
  151 	done
  152 
  153 install-macos:
  154 	echo Installing EPM macOS data files in $(BUILDROOT)$(datadir)/epm
  155 	$(INSTALL) -d -m 755 $(BUILDROOT)$(datadir)/epm
  156 	$(INSTALL) -c -m 644 default.icns $(BUILDROOT)$(datadir)/epm
  157 
  158 
  159 # Uninstall all targets...
  160 uninstall:
  161 	echo Uninstalling EPM programs from $(BUILDROOT)$(bindir)
  162 	$(RM) $(BUILDROOT)$(bindir)/epm
  163 	$(RM) $(BUILDROOT)$(bindir)/epminstall
  164 	$(RM) $(BUILDROOT)$(bindir)/mkepmlist
  165 	echo Uninstalling EPM setup/uninstall from $(BUILDROOT)$(libdir)/epm
  166 	$(RM) -r $(BUILDROOT)$(libdir)/epm
  167 	echo Uninstalling EPM macOS data files from $(BUILDROOT)$(datadir)/epm
  168 	$(RM) -r $(BUILDROOT)$(datadir)/epm
  169 
  170 
  171 # Makefile
  172 Makefile:	Makefile.in configure
  173 	if test -f config.status; then \
  174 		./config.status --recheck; \
  175 		./config.status; \
  176 	else \
  177 		./configure; \
  178 	fi
  179 	touch config.h
  180 
  181 
  182 # config.h
  183 config.h:	config.h.in configure
  184 	if test -f config.status; then \
  185 		./config.status --recheck; \
  186 		./config.status; \
  187 	else \
  188 		./configure; \
  189 	fi
  190 	touch config.h
  191 
  192 
  193 # Test EPM...
  194 test:	$(TARGETS)
  195 	echo Starting portable distribution build test...
  196 	if ./epm -vv epm >test.log; then \
  197 		echo Portable distribution build test PASSED.; \
  198 	else \
  199 		echo Portable distribution build test FAILED.; \
  200 		cat test.log; \
  201 	fi
  202 	echo Starting native distribution build test...
  203 	if ./epm -vv -s default.png -f native \
  204 		--setup-program setup --uninstall-program uninst \
  205 		epm >test.log; then \
  206 		echo Native distribution build test PASSED.; \
  207 	else \
  208 		echo Native distribution build test FAILED.; \
  209 		cat test.log; \
  210 	fi
  211 	$(RM) test.log
  212 
  213 
  214 # Make distributions in different formats using EPM...
  215 bsd: $(TARGETS)
  216 	./epm -f bsd -v epm
  217 
  218 deb: $(TARGETS)
  219 	./epm -f deb -v epm
  220 
  221 gui: $(TARGETS)
  222 	./epm -f portable -v -s default.png --setup-program setup \
  223 		--uninstall-program uninst --data-dir . epm
  224 
  225 lsb macos portable rpm: $(TARGETS)
  226 	./epm -f $@ -v -s default.png --setup-program setup \
  227 		--uninstall-program uninst --data-dir . epm
  228 
  229 native: $(TARGETS)
  230 	./epm -f native -v epm
  231 
  232 
  233 # libepm.a
  234 libepm.a:	$(EPM_OBJS)
  235 	echo Archiving libepm.a...
  236 	$(RM) libepm.a
  237 	$(AR) $(ARFLAGS) libepm.a $(EPM_OBJS)
  238 	$(RANLIB) libepm.a
  239 
  240 $(EPM_OBJS):	epm.h epmstring.h
  241 
  242 
  243 # epm
  244 epm:	epm.o libepm.a
  245 	echo Linking epm...
  246 	$(CC) $(LDFLAGS) -o epm epm.o libepm.a $(LIBS)
  247 	echo Code signing $@...
  248 	$(CODE_SIGN) $(CSFLAGS) -i org.msweet.epm.$@ $@
  249 
  250 epm.o:	epm.h epmstring.h
  251 
  252 
  253 # epminstall
  254 epminstall:	epminstall.o libepm.a
  255 	echo Linking epminstall...
  256 	$(CC) $(LDFLAGS) -o epminstall epminstall.o libepm.a $(LIBS)
  257 	echo Code signing $@...
  258 	$(CODE_SIGN) $(CSFLAGS) -i org.msweet.epm.$@ $@
  259 
  260 epminstall.o:	epm.h epmstring.h
  261 
  262 
  263 # mkepmlist
  264 mkepmlist:	mkepmlist.o libepm.a
  265 	echo Linking mkepmlist...
  266 	$(CC) $(LDFLAGS) -o mkepmlist mkepmlist.o libepm.a $(LIBS)
  267 	echo Code signing $@...
  268 	$(CODE_SIGN) $(CSFLAGS) -i org.msweet.epm.$@ $@
  269 
  270 mkepmlist.o:	epm.h epmstring.h
  271 
  272 
  273 # setup (GUI)
  274 setup:	$(SETUP_OBJS) libepm.a
  275 	echo Linking setup...
  276 	$(CXX) $(LDFLAGS) -o setup $(SETUP_OBJS) libepm.a $(GUILIBS) $(LIBS)
  277 
  278 setup.o:	setup.h gui-common.h epmstring.h
  279 setup2.o:	setup.h gui-common.h epmstring.h
  280 gui-common.o:	gui-common.h
  281 
  282 
  283 # uninst (GUI)
  284 uninst:	$(UNINST_OBJS) libepm.a
  285 	echo Linking uninst...
  286 	$(CXX) $(LDFLAGS) -o uninst $(UNINST_OBJS) libepm.a $(GUILIBS) $(LIBS)
  287 
  288 uninst.o:	uninst.h epmstring.h gui-common.h
  289 uninst2.o:	uninst.h epmstring.h gui-common.h
  290 gui-common.o:	gui-common.h
  291 
  292 
  293 # Common dependencies...
  294 $(OBJS):	Makefile config.h