IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 449


Ignore:
Timestamp:
Apr 19, 2004, 9:49:40 AM (22 years ago)
Author:
evanalst
Message:

Updated variable definitions and comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/Makefile.Globals

    r423 r449  
     1################################################################################
     2##
     3##  Makefile:  Globals
     4##
     5##  Assumptions:    Variable "prefix" already defined
     6##
     7##  $Revision: 1.2 $  $Name: not supported by cvs2svn $
     8##  $Date: 2004-04-19 19:49:40 $
     9##
     10##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     11##
     12###############################################################################
     13
     14# Determine the operating system and set variable for later conditional use
     15
    116ifndef OSTYPE
    2   OSTYPE:=$(shell uname -s)
     17    OSTYPE = $(shell uname -s)
    318endif
     19
     20# Set environment variables for the project's directory structure
    421
    522ifndef mandir
     
    1936endif
    2037
    21 CFLAGS:= -O2 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -fpic --pipe
     38# Set initial value for CFLAGS which will include all OS common flags for GCC
    2239
    23 LDFLAGS:= --pipe -shared -fPIC -ldl
     40CFLAGS := -O2 -g2 -Wall -Werror -std=c99 -pipe
    2441
    25 SO:=so
    26 DLL:=so
     42# Set initial value for LDFLAGS which will include all OS common flags for GCC
     43
     44LDFLAGS := -g2 -pipe
     45
     46# Define or refine variables for the Linux OS
     47
     48ifneq "$(findstring inux,$(OSTYPE))" ""
     49    CFLAGS_RELOC := $(CFLAGS) -fpic
     50    LDFLAGS_SO := $(LDFLAGS) -fpic -shared -ldl
     51    LDFLAGS_DLL := $(LDFLAGS) -fpic -shared
     52    DLL = so
     53    SO  = so
     54    DOCS = doxygen DoxyFile
     55endif
    2756
    2857ifneq "$(findstring arwin,$(OSTYPE))" ""
    29   CFLAGS:= -O2 -g2 -Wall -Wno-long-double -std=c99 -DDARWIN --pipe
    30   LDFLAGS:= --pipe -bundle -flat_namespace -undefined suppress
    31   SO:=bundle
    32   DLL:=dylib
     58    CFLAGS += -Wno-long-double -DDARWIN
     59    CFLAGS_RELOC := $(CFLAGS)
     60    LDFLAGS_SO := $(LDFLAGS) -bundle -flat_namespace -undefined suppress
     61    LDFLAGS_DLL := $(LDFLAGS) -dynamiclib
     62    DLL = dylib
     63    SO = bundle
     64    DOCS =
    3365endif
    3466
    35 ifneq "$(findstring olaris,$(OSTYPE))" ""
    36   CC = gcc
    37   CFLAGS_GLOBAL:= -O2 -g2 -Wall -std=c99 -DSOLARIS --pipe
    38 endif
    39 
    40 ifndef RANLIB
    41     export RANLIB=ranlib
    42 endif
     67# Set default for variable CC
    4368
    4469ifndef CC
     
    4671endif
    4772
     73# Set default for variable LD
     74
    4875ifndef LD
    4976    export LD=ld
    5077endif
    5178
    52 .PHONY: all install distclean clean print_header docs tags
     79# Set list of PHONY targets
     80.PHONY: all install distclean clean docs tags print_header
     81
Note: See TracChangeset for help on using the changeset viewer.