VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/share/emscripten/tests/openjpeg/codec/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/emscripten/tests/openjpeg/codec/Makefile.nix
#codec Makefile
include ../config.nix

CFLAGS = -Wall

INSTALL_BIN = $(prefix)/bin

INCLUDE = -I.. -I. -I../libopenjpeg -I../common
USERLIBS = -lm

ifeq ($(WITH_TIFF),yes)
INCLUDE += $(TIFF_INCLUDE)
USERLIBS += $(TIFF_LIB)
endif

ifeq ($(WITH_PNG),yes)
INCLUDE += $(PNG_INCLUDE)
USERLIBS += $(PNG_LIB)
endif

ifeq ($(WITH_LCMS2),yes)
INCLUDE += $(LCMS2_INCLUDE)
USERLIBS += $(LCMS2_LIB)
endif

ifeq ($(WITH_LCMS1),yes)
INCLUDE += $(LCMS1_INCLUDE)
USERLIBS += $(LCMS1_LIB)
endif

CFLAGS += $(INCLUDE) -lstdc++ # -g -p -pg

all: j2k_to_image image_to_j2k j2k_dump
	install -d ../bin
	install j2k_to_image image_to_j2k j2k_dump ../bin

ifeq ($(ENABLE_SHARED),yes)
ELIB = ../libopenjpeg.so.$(MAJOR).$(MINOR).$(BUILD)
else
ELIB = ../libopenjpeg.a
endif

j2k_to_image: j2k_to_image.c $(ELIB)
	$(CC)  $(CFLAGS) ../common/getopt.c index.c convert.c \
	../common/color.c j2k_to_image.c \
	-o j2k_to_image  $(ELIB) $(USERLIBS)

image_to_j2k: image_to_j2k.c  $(ELIB)
	$(CC) $(CFLAGS) ../common/getopt.c index.c convert.c image_to_j2k.c \
	-o image_to_j2k  $(ELIB) $(USERLIBS)

j2k_dump: j2k_dump.c  $(ELIB)
	$(CC) $(CFLAGS) ../common/getopt.c index.c j2k_dump.c \
	-o j2k_dump $(ELIB) $(USERLIBS)

clean:
	rm -f j2k_to_image image_to_j2k j2k_dump

install: all
	install -d $(DESTDIR)$(INSTALL_BIN)
	install -m 755 -o root -g root j2k_to_image $(DESTDIR)$(INSTALL_BIN)
	install -m 755 -o root -g root image_to_j2k $(DESTDIR)$(INSTALL_BIN)
	install -m 755 -o root -g root j2k_dump $(DESTDIR)$(INSTALL_BIN)

uninstall:
	rm -f $(DESTDIR)$(INSTALL_BIN)/j2k_to_image
	rm -f $(DESTDIR)$(INSTALL_BIN)/image_to_j2k
	rm -f $(DESTDIR)$(INSTALL_BIN)/j2k_dump

VaKeR 2022