blob: b59f7c4c5c237876f7a524d2d995a417f365bdd5 (
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= -fpic -O -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/X11R6/include -g -I$(INC_DIR)
#
# For making the library
#
AR= ar
ARFLAGS= rs
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
|