Makefile update
This commit is contained in:
parent
4c67811f65
commit
5197135a0a
31
mj2/Makefile
31
mj2/Makefile
|
@ -1,16 +1,14 @@
|
||||||
#
|
#
|
||||||
# Valentin Mesaros (Octalis | DICE/UCL Belgium)
|
# Valentin Mesaros (Octalis | DICE/UCL Belgium)
|
||||||
# 21 March 2005
|
# 21 March 2005
|
||||||
# Devaux François-Olivier (TELE/UCL Belgium)
|
|
||||||
# 25 March 2005
|
|
||||||
#
|
#
|
||||||
# Makefile for mj2 source files (frames_to_mj2, mj2_to_frames, wrap_j2k_in_mj2
|
# Makefile for mj2 source files (frames_to_mj2, mj2_to_frames, extract_j2k_from_mj2, wrap_j2k_in_mj2)
|
||||||
# and extract_j2k_from_mj2)
|
|
||||||
#
|
#
|
||||||
|
|
||||||
INCLUDES = -I. -I../libopenjpeg
|
INCLUDES = -Imj2 \
|
||||||
|
-I../libopenjpeg
|
||||||
|
|
||||||
C_OPT = -Wall -O3 -fno-strength-reduce -fomit-frame-pointer
|
C_OPT = -Wall -O -fno-strength-reduce -fomit-frame-pointer
|
||||||
CFLAGS = $(INCLUDES) $(C_OPT)
|
CFLAGS = $(INCLUDES) $(C_OPT)
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
@ -23,8 +21,8 @@ LIB_OPENJPEG = $(LIB_OPENJPEG_DIR)/libopenjpeg.a
|
||||||
all: $(OBJ_MJ2_DIR) $(BIN_MJ2_DIR) \
|
all: $(OBJ_MJ2_DIR) $(BIN_MJ2_DIR) \
|
||||||
$(BIN_MJ2_DIR)/frames_to_mj2 \
|
$(BIN_MJ2_DIR)/frames_to_mj2 \
|
||||||
$(BIN_MJ2_DIR)/mj2_to_frames \
|
$(BIN_MJ2_DIR)/mj2_to_frames \
|
||||||
$(BIN_MJ2_DIR)/wrap_j2k_in_mj2 \
|
$(BIN_MJ2_DIR)/extract_j2k_from_mj2 \
|
||||||
$(BIN_MJ2_DIR)/extract_j2k_from_mj2
|
$(BIN_MJ2_DIR)/wrap_j2k_in_mj2
|
||||||
|
|
||||||
|
|
||||||
$(OBJ_MJ2_DIR):
|
$(OBJ_MJ2_DIR):
|
||||||
|
@ -38,10 +36,11 @@ $(OBJ_MJ2_DIR)/%.o:
|
||||||
|
|
||||||
$(OBJ_MJ2_DIR)/frames_to_mj2.o: frames_to_mj2.c
|
$(OBJ_MJ2_DIR)/frames_to_mj2.o: frames_to_mj2.c
|
||||||
$(OBJ_MJ2_DIR)/mj2_to_frames.o: mj2_to_frames.c
|
$(OBJ_MJ2_DIR)/mj2_to_frames.o: mj2_to_frames.c
|
||||||
$(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o: wrap_j2k_in_mj2.c
|
|
||||||
$(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o: extract_j2k_from_mj2.c
|
|
||||||
$(OBJ_MJ2_DIR)/mj2.o: mj2.c
|
$(OBJ_MJ2_DIR)/mj2.o: mj2.c
|
||||||
$(OBJ_MJ2_DIR)/mj2_convert.o: mj2_convert.c
|
$(OBJ_MJ2_DIR)/mj2_convert.o: mj2_convert.c
|
||||||
|
$(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o: extract_j2k_from_mj2.c
|
||||||
|
$(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o: wrap_j2k_in_mj2.c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
MJ2_OBJS = $(addprefix $(OBJ_MJ2_DIR)/, mj2.o mj2_convert.o)
|
MJ2_OBJS = $(addprefix $(OBJ_MJ2_DIR)/, mj2.o mj2_convert.o)
|
||||||
|
@ -62,12 +61,6 @@ $(BIN_MJ2_DIR)/mj2_to_frames: $(OBJ_MJ2_DIR)/mj2_to_frames.o $(MJ2_OBJS) $(LIB_O
|
||||||
$(LIB_OPENJPEG) \
|
$(LIB_OPENJPEG) \
|
||||||
-lm
|
-lm
|
||||||
|
|
||||||
$(BIN_MJ2_DIR)/wrap_j2k_in_mj2: $(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o $(MJ2_OBJS) $(LIB_OPENJPEG)
|
|
||||||
$(CC) $(CFLAGS) \
|
|
||||||
-o $(BIN_MJ2_DIR)/wrap_j2k_in_mj2 \
|
|
||||||
$(MJ2_OBJS) $(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o \
|
|
||||||
$(LIB_OPENJPEG) \
|
|
||||||
-lm
|
|
||||||
|
|
||||||
$(BIN_MJ2_DIR)/extract_j2k_from_mj2: $(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o $(MJ2_OBJS) $(LIB_OPENJPEG)
|
$(BIN_MJ2_DIR)/extract_j2k_from_mj2: $(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o $(MJ2_OBJS) $(LIB_OPENJPEG)
|
||||||
$(CC) $(CFLAGS) \
|
$(CC) $(CFLAGS) \
|
||||||
|
@ -75,6 +68,12 @@ $(BIN_MJ2_DIR)/extract_j2k_from_mj2: $(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o $(MJ2
|
||||||
$(MJ2_OBJS) $(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o \
|
$(MJ2_OBJS) $(OBJ_MJ2_DIR)/extract_j2k_from_mj2.o \
|
||||||
$(LIB_OPENJPEG) \
|
$(LIB_OPENJPEG) \
|
||||||
-lm
|
-lm
|
||||||
|
$(BIN_MJ2_DIR)/wrap_j2k_in_mj2: $(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o $(MJ2_OBJS) $(LIB_OPENJPEG)
|
||||||
|
$(CC) $(CFLAGS) \
|
||||||
|
-o $(BIN_MJ2_DIR)/wrap_j2k_in_mj2 \
|
||||||
|
$(MJ2_OBJS) $(OBJ_MJ2_DIR)/wrap_j2k_in_mj2.o \
|
||||||
|
$(LIB_OPENJPEG) \
|
||||||
|
-lm
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN_MJ2_DIR)/* $(OBJ_MJ2_DIR)/*
|
rm -f $(BIN_MJ2_DIR)/* $(OBJ_MJ2_DIR)/*
|
Loading…
Reference in New Issue