source: git/resource/Makefile.in @ e49c970

spielwiese
Last change on this file since e49c970 was e49c970, checked in by Hans Schoenemann <hannes@…>, 13 years ago
make for resource
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#################################################################
2###
3### Makefile for Singular
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9##
10## various paths
11##
12srcdir          = .
13prefix          = @prefix@
14exec_prefix     = @exec_prefix@
15libdir          = @libdir@
16# includes are taken from here
17includedir      = @includedir@
18
19##
20## various programs
21##
22
23CXX             = @CXX@
24CC              = @CC@
25INSTALL         = /usr/bin/install -c
26INSTALL_PROGRAM = ${INSTALL}
27INSTALL_DATA    = ${INSTALL} -m 644
28MKINSTALLDIRS   = ../mkinstalldirs
29LN_S            = ln -s
30
31##
32## compiler and linker options
33##
34PIPE            = -pipe
35CFLAGS          = @CFLAGS@ ${PIPE}
36CXXFLAGS        = @CXXFLAGS@ ${PIPE}
37CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
38CPPFLAGS        = -I${srcdir} -I${includedir}
39DEFS            = -DNDEBUG -DOM_NDEBUG -Dix86_Linux -DHAVE_CONFIG_H
40
41## End configuration dependend stuff
42#################################################################
43
44###
45### file sets
46###
47
48# normal C++ source files
49CXXSOURCES=feFopen.cc feResource.cc
50
51# normal C source files
52CSOURCES=
53
54SOURCES=${CSOURCES} ${CXXSOURCES}
55
56HEADERS=feFopen.h feResource.h
57
58DISTFILES=${SOURCES} ${HEADERS}
59
60OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o)
61
62.cc.o: 
63        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
64.c.o:
65        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
66
67libresource.a: ${OBJS}
68         -rm -f $@
69         ar cr $@ $^
70
71all:  libresource.a
72
73install: all
74        ${MKINSTALLDIRS} ${includedir}
75        ${MKINSTALLDIRS} ${libdir}
76        ${INSTALL_DATA} feFopen.h ${includedir}/feFopen.h
77        ${INSTALL_DATA} libresource.a ${libdir}/libresource.a
78
79##
80## clean targest
81##
82mostlyclean:
83        -rm -f *.o *.og core *.op
84
85clean: mostlyclean
86        -rm -f *.bak *.d *.dd depend *.a *.so*
87
88tags:   
89        ctags *.c *.h *.cc *.inc
Note: See TracBrowser for help on using the repository browser.