Set debian build flags during build.
Signed-off-by: Luca Niccoli <lultimouomo@gmail.com>
Luca Niccoli authored 10 years ago
Didier Raboud committed 6 years ago
27 | 27 | |
28 | 28 | |
29 | 29 | # Flags |
30 | CXXFLAGS += `cups-config --cflags` -Iinclude -Wall -I/opt/local/include | |
30 | CXXFLAGS += $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) `cups-config --cflags` -Iinclude -Wall -I/opt/local/include | |
31 | 31 | DEBUG_CXXFLAGS += -DDEBUG -DDUMP_CACHE |
32 | 32 | OPTIM_CXXFLAGS += -g |
33 | rastertoqpdl_LDFLAGS := `cups-config --ldflags` -L/opt/local/lib | |
33 | rastertoqpdl_LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) `cups-config --ldflags` -L/opt/local/lib | |
34 | 34 | rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage |
35 | pstoqpdl_LDFLAGS := `cups-config --ldflags` | |
35 | pstoqpdl_LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) `cups-config --ldflags` | |
36 | 36 | pstoqpdl_LIBS := `cups-config --libs` -lcupsimage |
37 | 37 | |
38 | 38 |