diff options
author | Luca Niccoli <lultimouomo@gmail.com> | 2013-08-12 18:40:41 +0200 |
---|---|---|
committer | Luca Niccoli <lultimouomo@gmail.com> | 2013-08-12 18:40:41 +0200 |
commit | 970703d2e2d63e9e884b0c61cb2e28f696014373 (patch) | |
tree | d592dd1e957c7ec40c0dfcbfca56127132200538 /module.mk | |
parent | f5f67647244b856e46e81c4b393e01bd47a1f2cc (diff) |
Imported Upstream version 2.0.0
Diffstat (limited to 'module.mk')
-rw-r--r-- | module.mk | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/module.mk b/module.mk new file mode 100644 index 0000000..93e2c8d --- /dev/null +++ b/module.mk @@ -0,0 +1,70 @@ +# +# module.mk (C) 2007-2008, Aurélien Croc (AP²C) +# +# Compilation file for SpliX +# +# Options: DISABLE_JBIG +# DISABLE_THREADS +# DISABLE_BLACKOPTIM +# Compilation option: +# V=1 Verbose mode +# DESTDIR=xxx Change the destination directory prefix + +MODE := optimized + +SUBDIRS += src +TARGETS := rastertoqpdl pstoqpdl +PRE_GENERIC_TARGETS := optionList + + +# Default options +THREADS ?= 2 +CACHESIZE ?= 30 +DISABLE_JBIG ?= 0 +DISABLE_THREADS ?= 0 +DISABLE_BLACKOPTIM ?= 0 + + +# Flags +CXXFLAGS += `cups-config --cflags` -Iinclude -Wall -I/opt/local/include +DEBUG_CXXFLAGS += -DDEBUG -DDUMP_CACHE +OPTIM_CXXFLAGS += -g +rastertoqpdl_LDFLAGS := `cups-config --ldflags` -L/opt/local/lib +rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage +pstoqpdl_LDFLAGS := `cups-config --ldflags` +pstoqpdl_LIBS := `cups-config --libs` -lcupsimage + + +# Update compilation flags with defined options +ifneq ($(DISABLE_THREADS),0) +CXXFLAGS += -DDISABLE_THREADS +else +CXXFLAGS += -DTHREADS=$(THREADS) -DCACHESIZE=$(CACHESIZE) +endif +ifneq ($(DISABLE_JBIG),0) +CXXFLAGS += -DDISABLE_JBIG +else +rastertoqpdl_LIBS += -ljbig +endif +ifneq ($(DISABLE_BLACKOPTIM),0) +CXXFLAGS += -DDISABLE_BLACKOPTIM +endif + + +# Get some information +CUPSFILTER := `cups-config --serverbin`/filter +CUPSPPD := `cups-config --datadir`/model +ifeq ($(ARCHI),Darwin) +PSTORASTER := pstocupsraster +else +PSTORASTER := pstoraster +endif +export CUPSFILTER CUPSPPD + + +# Specific information needed by pstoqpdl +src_pstoqpdl_cpp_FLAGS := -DRASTERDIR=\"$(CUPSFILTER)\" +src_pstoqpdl_cpp_FLAGS += -DRASTERTOQPDL=\"rastertoqpdl\" +src_pstoqpdl_cpp_FLAGS += -DPSTORASTER=\"$(PSTORASTER)\" +src_pstoqpdl_cpp_FLAGS += -DCUPSPPD=\"$(CUPSPPD)\" + |