1 | ################################################################# |
---|
2 | ### |
---|
3 | ### Makefile for Singular |
---|
4 | ### |
---|
5 | ################################################################# |
---|
6 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | ## |
---|
10 | ## various paths |
---|
11 | ## |
---|
12 | srcdir = . |
---|
13 | prefix = @prefix@ |
---|
14 | exec_prefix = @exec_prefix@ |
---|
15 | libdir = @libdir@ |
---|
16 | # includes are taken from here |
---|
17 | includedir = @includedir@ |
---|
18 | |
---|
19 | ## |
---|
20 | ## various programs |
---|
21 | ## |
---|
22 | |
---|
23 | CXX = @CXX@ |
---|
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 = @CFLAGS@ ${PIPE} |
---|
35 | CXXFLAGS = @CXXFLAGS@ ${PIPE} |
---|
36 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
37 | CPPFLAGS = -I${srcdir} -I${includedir} |
---|
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=feFopen.cc feResource.cc |
---|
49 | |
---|
50 | # normal C source files |
---|
51 | CSOURCES= |
---|
52 | |
---|
53 | SOURCES=${CSOURCES} ${CXXSOURCES} |
---|
54 | |
---|
55 | HEADERS=feFopen.h feResource.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 | libresource.a: ${OBJS} |
---|
67 | -rm -f $@ |
---|
68 | ar cr $@ $^ |
---|
69 | |
---|
70 | all: libresource.a |
---|
71 | |
---|
72 | install: all |
---|
73 | ${MKINSTALLDIRS} ${includedir} |
---|
74 | ${MKINSTALLDIRS} ${libdir} |
---|
75 | ${INSTALL_DATA} feFopen.h ${includedir}/feFopen.h |
---|
76 | ${INSTALL_DATA} libresource.a ${libdir}/libresource.a |
---|
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 |
---|