1# Copyright (C) 2001-2012 Artifex Software, Inc. 2# All Rights Reserved. 3# 4# This software is provided AS-IS with no warranty, either express or 5# implied. 6# 7# This software is distributed under license and may not be copied, 8# modified or distributed except as expressly authorized under the terms 9# of the license contained in the file LICENSE in this distribution. 10# 11# Refer to licensing information at http://www.artifex.com or contact 12# Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, 13# CA 94903, U.S.A., +1(415)492-9861, for further information. 14# 15# Partial makefile common to all Unix and Desqview/X configurations. 16# This is the next-to-last part of the makefile for these configurations. 17 18# Define the rule for building standard configurations. 19directories: 20 @if test "$(BINDIR)" != "" -a ! -d $(BINDIR); then mkdir $(BINDIR); fi 21 @if test "$(GLGENDIR)" != "" -a ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi 22 @if test "$(GLOBJDIR)" != "" -a ! -d $(GLOBJDIR); then mkdir $(GLOBJDIR); fi 23 @if test "$(AUXDIR)" != "" -a ! -d $(AUXDIR); then mkdir $(AUXDIR); fi 24 @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR); then mkdir $(PSGENDIR); fi 25 @if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR)/cups; then mkdir $(PSGENDIR)/cups; fi 26 @if test "$(PSOBJDIR)" != "" -a ! -d $(PSOBJDIR); then mkdir $(PSOBJDIR); fi 27 28# Define a rule for building profiling configurations. 29PGDEFS=GENOPT='-DPROFILE' CFLAGS='$(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\ 30 LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11'\ 31 BUILDDIRPREFIX=$(PGDIRPREFIX) 32 33pg: 34 $(MAKE) $(PGDEFS) default 35 36pgclean: 37 $(MAKE) $(PGDEFS) clean 38 39# Define a rule for building debugging configurations. 40DEBUGDEFS=GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\ 41 BUILDDIRPREFIX=$(DEBUGDIRPREFIX) 42 43debug: 44 $(MAKE) $(DEBUGDEFS) default 45 46debugclean: 47 $(MAKE) $(DEBUGDEFS) clean 48 49# Define a rule for building memento configurations. 50MEMENTODEFS=GENOPT='-DMEMENTO -DDEBUG' \ 51 CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\ 52 BUILDDIRPREFIX=$(MEMENTODIRPREFIX) 53 54memento: 55 $(MAKE) $(MEMENTODEFS) default 56 57mementoclean: 58 $(MAKE) $(MEMENTODEFS) clean 59 60# Emacs tags maintenance. 61 62TAGS: 63 etags -t $(GLSRC)*.[ch] $(PSSRC)*.[ch] 64