Last change
on this file since 2063 was 1915, checked in by Kana Sugimoto, 14 years ago |
New Development: No
JIRA Issue: No (related to merge)
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs: make & make install
Put in Release Notes: No
Module(s): asap
Description: merged Wes's changes to Makefiles
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1761] | 1 | ### Notice:
|
---|
| 2 | ### This Makefile assumes CASA+CASACore enviroment.
|
---|
| 3 | ### For who wants to build ASAP with older CASA without CASACore
|
---|
| 4 | ### environment, replace $(CASAPATH) with $(AIPSPATH).
|
---|
| 5 |
|
---|
| 6 | # the casa environment AIPSPATH has to be defined
|
---|
| 7 | CASAROOT := $(word 1, $(CASAPATH))
|
---|
| 8 | CASAARCH := $(word 2, $(CASAPATH))
|
---|
| 9 |
|
---|
[1915] | 10 | CORELIB := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CORELIB eval_vars) && echo $$CORELIB)
|
---|
[1761] | 11 | COREINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COREINCD eval_vars) && echo $$COREINCD)
|
---|
| 12 | CASALIB := $(CASAROOT)/$(CASAARCH)/lib
|
---|
| 13 |
|
---|
| 14 | # the compiler
|
---|
| 15 | ifndef CXX
|
---|
| 16 | CXX := g++
|
---|
| 17 | endif
|
---|
| 18 |
|
---|
| 19 | # compiler flags
|
---|
[1915] | 20 | CXXFLAGS := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=CXXFLAGS eval_vars) && echo $$CXXFLAGS)
|
---|
| 21 | CXXFLAGS += -fPIC -O3 -Xlinker -rpath -Xlinker $(CASALIB)
|
---|
[1761] | 22 |
|
---|
| 23 |
|
---|
| 24 | INCDIRS := -I$(COREINCD)
|
---|
[1915] | 25 | LIBS := -L$(CASALIB) $(CORELIB)
|
---|
[1761] | 26 |
|
---|
| 27 | OBJECTS := asap2to3
|
---|
| 28 |
|
---|
| 29 | .SUFFIXES: .cpp
|
---|
| 30 |
|
---|
| 31 | .cpp:
|
---|
| 32 | $(CXX) $(CXXFLAGS) $(INCDIRS) $(LIBS) -o $@ $<
|
---|
| 33 |
|
---|
| 34 | all : $(OBJECTS)
|
---|
| 35 |
|
---|
| 36 | $(OBJECTS):
|
---|
| 37 |
|
---|
| 38 | clean :
|
---|
| 39 | -rm -f $(OBJECTS)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.