2010-10-05 12:33:15 +02:00
|
|
|
#jp3d/codec/Makefile
|
|
|
|
|
|
|
|
include ../../config.nix
|
|
|
|
|
|
|
|
INSTALL_BIN = $(prefix)/bin
|
|
|
|
CFLAGS = -Wall -I. -I../libjp3dvm -lstdc++ # -g -p -pg
|
|
|
|
#USERLIBS = -lm
|
|
|
|
|
2010-12-10 05:27:40 +01:00
|
|
|
ifeq ($(ENABLE_SHARED),yes)
|
|
|
|
ELIB = ../libopenjp3dvm.so.$(JP3D_MAJOR).$(JP3D_MINOR).$(JP3D_BUILD)
|
|
|
|
else
|
|
|
|
ELIB = ../libopenjp3dvm.a
|
|
|
|
endif
|
|
|
|
|
2010-10-05 12:33:15 +02:00
|
|
|
all: jp3d_to_volume volume_to_jp3d
|
|
|
|
install -d ../../bin
|
|
|
|
install jp3d_to_volume volume_to_jp3d ../../bin
|
|
|
|
|
2010-12-10 05:27:40 +01:00
|
|
|
jp3d_to_volume: jp3d_to_volume.c $(ELIB)
|
2010-10-05 12:33:15 +02:00
|
|
|
$(CC) $(CFLAGS) getopt.c convert.c jp3d_to_volume.c \
|
2010-12-10 05:27:40 +01:00
|
|
|
-o jp3d_to_volume $(ELIB) $(USERLIBS)
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2010-12-10 05:27:40 +01:00
|
|
|
volume_to_jp3d: volume_to_jp3d.c $(ELIB)
|
2010-10-05 12:33:15 +02:00
|
|
|
$(CC) $(CFLAGS) getopt.c convert.c volume_to_jp3d.c \
|
2010-12-10 05:27:40 +01:00
|
|
|
-o volume_to_jp3d $(ELIB) $(USERLIBS)
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f jp3d_to_volume volume_to_jp3d
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -d $(DESTDIR)$(INSTALL_BIN)
|
|
|
|
install -m 755 -o root -g root jp3d_to_volume $(DESTDIR)$(INSTALL_BIN)
|
|
|
|
install -m 755 -o root -g root volume_to_jp3d $(DESTDIR)$(INSTALL_BIN)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(INSTALL_BIN)/jp3d_to_volume
|
|
|
|
rm -f $(DESTDIR)$(INSTALL_BIN)/volume_to_jp3d
|