blob: dc7493d96a6525a30fdc335e3f5f781906858bf1 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#
# For instalation. Change this to your settings.
#
INC_DIR = ../../../include
LIB_DIR = ../..
#
# compiler
#
CC= cc
CFLAG= @CFLAG@ -I$(INC_DIR)
#
# For making the library
#
AR= ar
ARFLAGS= @ARFLAG@
RANLIB= @RANLIB@
#
# products
#
LIB= ${LIB_DIR}/libARgsub.a
LIB2= ${LIB_DIR}/libARgsubUtil.a
LIB3= ${LIB_DIR}/libARgsub_lite.a
INCLUDE= ${INC_DIR}/AR/gsub.h \
${INC_DIR}/AR/config.h \
${INC_DIR}/AR/ar.h \
${INC_DIR}/AR/matrix.h \
${INC_DIR}/AR/param.h
INCLUDE2= ${INC_DIR}/AR/gsubUtil.h
INCLUDE3= ${INC_DIR}/AR/gsub_lite.h \
${INC_DIR}/AR/config.h \
${INC_DIR}/AR/ar.h \
${INC_DIR}/AR/param.h
#
# compilation control
#
LIBOBJS= ${LIB}(gsub.o)
LIB2OBJS= ${LIB2}(gsubUtil.o)
LIB3OBJS= ${LIB3}(gsub_lite.o)
all: ${LIBOBJS} ${LIB2OBJS} ${LIB3OBJS}
${LIBOBJS}: ${INCLUDE}
${LIB2OBJS}: ${INCLUDE} ${INCLUDE2}
${LIB3OBJS}: ${INCLUDE3}
.c.a:
${CC} -c ${CFLAG} $<
${AR} ${ARFLAGS} $@ $*.o
${RANLIB}
rm -f $*.o
clean:
rm -f *.o
rm -f ${LIB} ${LIB2} ${LIB3}
allclean:
rm -f *.o
rm -f ${LIB} ${LIB2} ${LIB3}
rm -f Makefile
|