Changeset 449
- Timestamp:
- Apr 19, 2004, 9:49:40 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/Makefile.Globals (modified) (3 diffs)
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 1 16 ifndef OSTYPE 2 OSTYPE:=$(shell uname -s)17 OSTYPE = $(shell uname -s) 3 18 endif 19 20 # Set environment variables for the project's directory structure 4 21 5 22 ifndef mandir … … 19 36 endif 20 37 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 22 39 23 LDFLAGS:= --pipe -shared -fPIC -ldl 40 CFLAGS := -O2 -g2 -Wall -Werror -std=c99 -pipe 24 41 25 SO:=so 26 DLL:=so 42 # Set initial value for LDFLAGS which will include all OS common flags for GCC 43 44 LDFLAGS := -g2 -pipe 45 46 # Define or refine variables for the Linux OS 47 48 ifneq "$(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 55 endif 27 56 28 57 ifneq "$(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 = 33 65 endif 34 66 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 43 68 44 69 ifndef CC … … 46 71 endif 47 72 73 # Set default for variable LD 74 48 75 ifndef LD 49 76 export LD=ld 50 77 endif 51 78 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.
