source: branches/1.7/src/core2/Makefile.in @ 6694

Last change on this file since 6694 was 1944, checked in by gah, 13 years ago

add unit cell to molvisviewer

File size: 3.0 KB
Line 
1
2# Makefile for Rappture2
3# Copyright (C) 2004-2007 Derrick S. Kearney.
4# For conditions of distribution and use, see license.terms
5
6# To compile and test, type:
7#    ./configure; make test
8# The call of configure is optional if you don't have special requirements
9#
10# To install librappture2.* and rappture2.h, type:
11#    make install
12# To install in $HOME instead of /usr/local, use:
13#    make install prefix=$HOME
14
15bindir          = @bindir@
16datadir         = @datadir@
17datarootdir     = @datarootdir@
18exec_prefix     = @exec_prefix@
19includedir      = @includedir@
20libdir          = @libdir@
21man3dir         = ${mandir}/man3
22mandir          = @mandir@
23prefix          = @prefix@
24scriptdir       = $(exec_prefix)/lib
25srcdir          = @srcdir@
26incdir          = $(prefix)/include
27
28CXX             = @CXX@
29CC              = @CXX@
30CFLAGS_DEBUG    = @CFLAGS_DEBUG@
31CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
32STLIB_LD        = @STLIB_LD@
33SHLIB_LD        = @SHLIB_LD@
34SHLIB_CFLAGS    = @SHLIB_CFLAGS@
35SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
36SHLIB_SUFFIX    = @SHLIB_SUFFIX@
37CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
38LIB_SEARCH_DIRS = -L../core @LIB_SEARCH_DIRS@
39CFLAGS          = @CFLAGS@ -fPIC
40CPP             = @CPP@
41
42INSTALL         = @INSTALL@
43MKDIR_P         = @MKDIR_P@
44VPATH           = $(srcdir)
45
46name            = rappture2
47libname         = lib$(name)
48lib             = $(libname).a
49shared_lib      = $(libname)$(SHLIB_SUFFIX)
50
51AR              = ar rcv
52RANLIB          = @RANLIB@
53SHELL           = @SHELL@
54VPATH           = $(srcdir)
55
56LIBS            = -lrappture -lz
57
58INCLUDES        = \
59                -I$(srcdir) \
60                -I$(srcdir)/../core \
61                -I$(includedir)
62
63OBJS            = \
64                RpMesh1D.o \
65                RpField1D.o \
66                RpMeshTri2D.o \
67                RpMeshRect3D.o \
68                RpFieldRect3D.o \
69                RpMeshPrism3D.o \
70                RpFieldPrism3D.o \
71                RpSerialBuffer.o \
72                RpSerializer.o \
73                RpSerializable.o
74
75HEADERS         = \
76                RpField1D.h \
77                RpFieldPrism3D.h \
78                RpFieldRect3D.h \
79                RpFieldTri2D.h \
80                RpMesh1D.h \
81                RpMeshPrism3D.h \
82                RpMeshRect3D.h \
83                RpMeshTri2D.h \
84                RpNode.h \
85                RpSerialBuffer.h \
86                RpSerializable.h \
87                RpSerializer.h  \
88                rappture2.h
89
90all: $(lib) $(shared_lib)
91
92$(lib): $(OBJS)
93        $(RM) $@
94        $(AR) $@ $(OBJS)
95        $(RANLIB) $@
96
97$(shared_lib): $(OBJS)
98        $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) $(LIB_SEARCH_DIRS) $(LIBS)
99
100install: install_libs install_headers
101
102install_libs: $(lib) $(shared_lib)
103        $(MKDIR_P) -m 0755 $(libdir)
104        $(INSTALL) -m 0444 $(lib) $(libdir)
105        $(INSTALL) -m 0555 $(shared_lib) $(libdir)
106
107# This is no manual page for rappture yet.
108install_man:
109        $(MKDIR_P) -m 0755 $(man3dir)
110        $(INSTALL) -m 0444 rappture.3 $(man3dir)
111
112install_headers:
113        $(MKDIR_P) -m 0755 $(includedir)/rappture2
114        for i in $(HEADERS) ; do \
115          $(INSTALL) -m 0444 $(srcdir)/$$i $(includedir)/rappture2; \
116        done
117
118uninstall: uninstall_libs uninstall_man uninstall_headers
119
120uninstall_libs: $(lib) $(shared_lib)
121        $(RM) $(libdir)/$(lib) $(libdir)/$(shared_lib)
122
123uninstall_man:
124        $(RM) $(man3dir)/rappture.3
125
126uninstall_headers:
127        for i in $(HEADERS) ; do \
128          $(RM) $(includedir)/rappture2/$$i; \
129        done
130.cc.o:
131        $(CXX) $(CFLAGS) $(INCLUDES) $(DEBUG) -c $?
132.c.o:
133        $(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c $?
134
135
136clean:
137        $(RM) $(OBJS) $(lib) $(shared_lib)
138        $(RM) buffer1.txt RpBuffer_test$(EXE)
139
140distclean: clean
141        $(RM) Makefile *~
142
143docs:
144        $(MKDIR_P) -m 0755 ../../docs/rappture2
145        doxygen
146
Note: See TracBrowser for help on using the repository browser.