1 | ################################################################# |
---|
2 | ### |
---|
3 | ### Makefile for Singular |
---|
4 | ### |
---|
5 | ################################################################# |
---|
6 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | ## |
---|
10 | ## various paths |
---|
11 | ## |
---|
12 | top_srcdir = @top_srcdir@ |
---|
13 | prefix = @prefix@ |
---|
14 | exec_prefix = @exec_prefix@ |
---|
15 | libdir = @libdir@ |
---|
16 | # includes are taken from here |
---|
17 | includedir = @includedir@/reporter |
---|
18 | |
---|
19 | ## |
---|
20 | ## various programs |
---|
21 | ## |
---|
22 | |
---|
23 | CXX = g++ |
---|
24 | INSTALL = @INSTALL@ |
---|
25 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
26 | INSTALL_DATA = @INSTALL_DATA@ |
---|
27 | MKINSTALLDIRS = ./mkinstalldirs |
---|
28 | LN_S = ln -s |
---|
29 | |
---|
30 | ## |
---|
31 | ## compiler and linker options |
---|
32 | ## |
---|
33 | PIPE = -pipe |
---|
34 | CFLAGS = -O3 -w -fomit-frame-pointer ${PIPE} |
---|
35 | CXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE} |
---|
36 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
37 | CPPFLAGS = -I${top_srcdir}/.. -I${top_srcdir}/../.. |
---|
38 | DEFS = -DNDEBUG -DOM_NDEBUG -Dix86_Linux -DHAVE_CONFIG_H |
---|
39 | |
---|
40 | ## End configuration dependend stuff |
---|
41 | ################################################################# |
---|
42 | |
---|
43 | ### |
---|
44 | ### file sets |
---|
45 | ### |
---|
46 | |
---|
47 | # normal C++ source files |
---|
48 | CXXSOURCES=reporter.cc |
---|
49 | |
---|
50 | # normal C source files |
---|
51 | CSOURCES=dError.c |
---|
52 | |
---|
53 | SOURCES=${CSOURCES} ${CXXSOURCES} |
---|
54 | |
---|
55 | HEADERS=reporter.h |
---|
56 | |
---|
57 | DISTFILES=${SOURCES} ${HEADERS} |
---|
58 | |
---|
59 | OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) |
---|
60 | |
---|
61 | .cc.o: |
---|
62 | ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
63 | .c.o: |
---|
64 | ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
65 | |
---|
66 | libreporter.a: ${OBJS} |
---|
67 | -rm -f libreporter.a |
---|
68 | ar cr $@ $^ |
---|
69 | |
---|
70 | all: libreporter.a |
---|
71 | |
---|
72 | install: all |
---|
73 | ${MKINSTALLDIRS} ${includedir} |
---|
74 | ${MKINSTALLDIRS} ${libdir} |
---|
75 | ${INSTALL_DATA} libreporter.a ${libdir}/libreporter.a |
---|
76 | ${INSTALL_DATA} reporter.h ${includedir}/reporter.h |
---|
77 | |
---|
78 | ## |
---|
79 | ## clean targest |
---|
80 | ## |
---|
81 | mostlyclean: |
---|
82 | -rm -f *.o *.og core *.op |
---|
83 | |
---|
84 | clean: mostlyclean |
---|
85 | -rm -f *.bak *.d *.dd depend *.a *.so* |
---|
86 | |
---|
87 | tags: |
---|
88 | ctags *.c *.h *.cc *.inc |
---|