source: trunk/apps/Makefile@ 1840

Last change on this file since 1840 was 1819, checked in by Kana Sugimoto, 14 years ago

New Development: No

JIRA Issue: No (merge alma branch to trunk)

Ready for Test: Yes

Interface Changes: No

Test Programs: regressions may work

Module(s): all single dish modules

Description:

Merged all changes in alma (r1386:1818) and newfiller (r1774:1818) branch.


File size: 895 bytes
RevLine 
[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
7CASAROOT := $(word 1, $(CASAPATH))
8CASAARCH := $(word 2, $(CASAPATH))
9
10COREINCD := $(shell $(shell make -s -f $(CASAROOT)/$(CASAARCH)/makedefs VARS=COREINCD eval_vars) && echo $$COREINCD)
11CASALIB := $(CASAROOT)/$(CASAARCH)/lib
12
13# the compiler
14ifndef CXX
15 CXX := g++
16endif
17
18# compiler flags
[1764]19CXXFLAGS := -fPIC -O3 -g
[1761]20CXXFLAGS += -ansi -Wno-long-long -Wall
[1764]21CXXFLAGS := -Xlinker -rpath -Xlinker $(CASALIB)
[1761]22
23
24INCDIRS := -I$(COREINCD)
25LIBS := -L$(CASALIB) -lcasa_tables -lcasa_casa
26
27OBJECTS := asap2to3
28
29.SUFFIXES: .cpp
30
31.cpp:
32 $(CXX) $(CXXFLAGS) $(INCDIRS) $(LIBS) -o $@ $<
33
34all : $(OBJECTS)
35
36$(OBJECTS):
37
38clean :
39 -rm -f $(OBJECTS)
Note: See TracBrowser for help on using the repository browser.