2021-07-03 21:57:53 +02:00
|
|
|
|
2021-07-16 20:44:40 +02:00
|
|
|
TARGETS=acsmdownloader adept_activate
|
2021-07-03 21:57:53 +02:00
|
|
|
|
|
|
|
CXXFLAGS=-Wall `pkg-config --cflags Qt5Core Qt5Network` -fPIC -I$(ROOT)/include -I$(ROOT)/lib/pugixml/src/
|
2021-09-28 15:02:50 +02:00
|
|
|
LDFLAGS=`pkg-config --libs Qt5Core Qt5Network` -L$(ROOT) -lcrypto -lzip -lz
|
2021-07-05 20:23:25 +02:00
|
|
|
ifneq ($(STATIC_UTILS),)
|
2021-09-28 15:02:50 +02:00
|
|
|
LDFLAGS += $(ROOT)/libgourou.a
|
2021-07-05 20:23:25 +02:00
|
|
|
else
|
2021-09-28 15:02:50 +02:00
|
|
|
LDFLAGS += -lgourou
|
2021-07-05 20:23:25 +02:00
|
|
|
endif
|
2021-07-03 21:57:53 +02:00
|
|
|
|
|
|
|
ifneq ($(DEBUG),)
|
|
|
|
CXXFLAGS += -ggdb -O0
|
|
|
|
else
|
|
|
|
CXXFLAGS += -O2
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
acsmdownloader: drmprocessorclientimpl.cpp acsmdownloader.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
2021-07-16 20:44:40 +02:00
|
|
|
adept_activate: drmprocessorclientimpl.cpp adept_activate.cpp
|
2021-07-03 21:57:53 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
ultraclean: clean
|