-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
36 lines (28 loc) · 890 Bytes
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: default all clean distclean install dep
include Makefile.inc
default:
@(cd src; $(MAKE))
lib:
@(cd src; $(MAKE))
all:
@(cd src; $(MAKE))
clean:
@(cd src; $(MAKE) clean)
@rm -fr config-env.log config.log config.status autom4te.cache
@(cd example; $(MAKE) clean)
distclean:
@(cd src; $(MAKE) clean)
@(cd example; $(MAKE) clean)
@rm -f Makefile Makefile.inc
@rm -fr config-env.log config.log config.status autom4te.cache
@rm -f include/config.h Makefile Makefile.inc
install:
@(cd src; $(MAKE))
@mkdir -p ${libdir}
@/bin/rm -f ${libdir}/lib${SXAMGLIB}${LIB_SUFFIX} ${libdir}/lib${SXAMGLIB}.so >/dev/null 2>&1 || true
@cp -f src/lib${SXAMGLIB}${LIB_SUFFIX} ${libdir}/
@chmod 0644 ${libdir}/lib${SXAMGLIB}${LIB_SUFFIX}
@echo "installing header files to ${includedir}/"
@mkdir -p ${includedir}
@cp -f include/*.h ${includedir}/
@chmod 0644 ${includedir}/*.h