Last change
on this file since 2ab812d 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
|
Rev | Line | |
---|
[aa639ea] | 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 | |
---|
| 12 | include local.def |
---|
| 13 | |
---|
| 14 | PROJECT = geoshapespy |
---|
| 15 | PACKAGE = libgeoshapespy |
---|
| 16 | |
---|
| 17 | PROJ_SAR = $(BLD_LIBDIR)/$(PACKAGE).$(EXT_SAR) |
---|
| 18 | PROJ_DLL = $(BLD_BINDIR)/$(PACKAGE).$(EXT_SO) |
---|
| 19 | PROJ_TMPDIR = $(BLD_TMPDIR)/$(PROJECT)/$(PACKAGE) |
---|
| 20 | PROJ_CLEAN += $(PROJ_SAR) $(PROJ_DLL) |
---|
| 21 | |
---|
| 22 | PROJ_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 | |
---|
| 35 | all: $(PROJ_SAR) export |
---|
| 36 | |
---|
| 37 | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 38 | |
---|
| 39 | ifeq (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 |
---|
| 47 | export:: export-headers export-libraries export-binaries |
---|
| 48 | |
---|
| 49 | else |
---|
| 50 | |
---|
| 51 | # build the shared object |
---|
| 52 | $(PROJ_SAR): product_dirs $(PROJ_OBJS) |
---|
| 53 | $(CXX) $(LCXXFLAGS) -o $(PROJ_SAR) $(PROJ_OBJS) |
---|
| 54 | |
---|
| 55 | # export |
---|
| 56 | export:: export-headers export-libraries |
---|
| 57 | |
---|
| 58 | endif |
---|
| 59 | |
---|
| 60 | EXPORT_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 | |
---|
| 71 | EXPORT_LIBS = $(PROJ_SAR) |
---|
| 72 | EXPORT_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.