blob: 5f1d9799a42b24ddbecc1f48a86a5592bb1986a6 (
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
|
#--------------------------------
# jhead makefile for Unix
# this make file also creates libjhead for meshlab
#--------------------------------
OBJ=.
SRC=.
AR = ar cqs
LFLAGS = -shared -Wl,-soname,libjhead.so.1
objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \
$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o
TARGET = libjhead.so.1.0.0
TARGET0 = libjhead.so
TARGET1 = libjhead.so.1
TARGET2 = libjhead.so.1.0
all: jhead $(TARGET)
$(OBJ)/%.o:$(SRC)/%.c
${CC} -fPIC $(CFLAGS) -c $< -o $@
jhead: $(objs) jhead.h
${CC} ${LDFLAGS} -o jhead $(objs) -lm
clean:
rm -f $(objs) jhead ${TARGET} ${TARGETA} ${TARGET0} ${TARGETD} \
${TARGET1} ${TARGET2}
install:
cp jhead ${DESTDIR}/usr/bin/
cp ${TARGET} ${DESTDIR}/usr/lib/
cp jhead ${DESTDIR}/usr/bin/
cp ${TARGET0} ${DESTDIR}/usr/lib/
cp ${TARGET1} ${DESTDIR}/usr/lib/
cp ${TARGET2} ${DESTDIR}/usr/lib/
$(TARGET): $(objs) jhead
${CC} $(LDFLAGS) $(LFLAGS) -o $(TARGET) $(objs)
ln -s ${TARGET} ${TARGET0}
ln -s ${TARGET} ${TARGET1}
ln -s ${TARGET} ${TARGET2}
|