source: sasview/src/sas/sascalc/simulation/geoshapespy/libgeoshapespy/Make.mm @ 1b9a367

Last change on this file since 1b9a367 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# -*- Makefile -*-
2#
3# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4#
5#                               Michael A.G. Aivazis
6#                        California Institute of Technology
7#                        (C) 1998-2005  All Rights Reserved
8#
9# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10#
11
12include local.def
13
14PROJECT = geoshapespy
15PACKAGE = libgeoshapespy
16
17PROJ_SAR = $(BLD_LIBDIR)/$(PACKAGE).$(EXT_SAR)
18PROJ_DLL = $(BLD_BINDIR)/$(PACKAGE).$(EXT_SO)
19PROJ_TMPDIR = $(BLD_TMPDIR)/$(PROJECT)/$(PACKAGE)
20PROJ_CLEAN += $(PROJ_SAR) $(PROJ_DLL)
21
22PROJ_SRCS = \
23    geo_shape.cc \
24    sphere.cc \
25    hollow_sphere.cc \
26    cylinder.cc   \
27    ellipsoid.cc  \
28    single_helix.cc \
29    Point3D.cc  \
30    myutil.cc
31
32# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33# build the library
34
35all: $(PROJ_SAR) export
36
37# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38
39ifeq (Win32, ${findstring Win32, $(PLATFORM_ID)})
40
41# build the shared object
42$(PROJ_SAR): product_dirs $(PROJ_OBJS)
43        $(CXX) $(LCXXFLAGS) -o $(PROJ_DLL) \
44        -Wl,--out-implib=$(PROJ_SAR) $(PROJ_OBJS)
45
46# export
47export:: export-headers export-libraries export-binaries
48
49else
50
51# build the shared object
52$(PROJ_SAR): product_dirs $(PROJ_OBJS)
53        $(CXX) $(LCXXFLAGS) -o $(PROJ_SAR) $(PROJ_OBJS)
54
55# export
56export:: export-headers export-libraries
57
58endif
59
60EXPORT_HEADERS = \
61    geo_shape.h   \
62    sphere.h      \
63    hollow_sphere.h \
64    cylinder.h \
65    ellipsoid.h \
66    single_helix.h \
67    Point3D.h  \
68    myutil.h
69
70
71EXPORT_LIBS = $(PROJ_SAR)
72EXPORT_BINS = $(PROJ_DLL)
73
74
75# version
76# $Id$
77
78#
79# End of file
Note: See TracBrowser for help on using the repository browser.