2021-07-03 21:57:53 +02:00
|
|
|
|
2021-12-18 17:42:23 +01:00
|
|
|
TARGETS=acsmdownloader adept_activate adept_remove
|
2021-07-03 21:57:53 +02:00
|
|
|
|
2022-03-16 22:45:33 +01:00
|
|
|
CXXFLAGS=-Wall -fPIC -I$(ROOT)/include -I$(ROOT)/lib/pugixml/src/
|
2021-09-28 18:14:41 +02:00
|
|
|
|
2021-11-26 20:01:21 +01:00
|
|
|
STATIC_DEP=
|
2022-03-16 22:45:33 +01:00
|
|
|
LDFLAGS=-L$(ROOT) -lcrypto -lzip -lz -lcurl
|
2021-11-26 20:01:21 +01:00
|
|
|
|
2021-07-05 20:23:25 +02:00
|
|
|
ifneq ($(STATIC_UTILS),)
|
2021-11-26 20:01:21 +01:00
|
|
|
STATIC_DEP = $(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
|
|
|
|
|
2022-03-16 22:45:33 +01:00
|
|
|
COMMON_DEPS = drmprocessorclientimpl.cpp utils_common.cpp $(STATIC_DEP)
|
2021-12-18 17:42:23 +01:00
|
|
|
|
2021-07-03 21:57:53 +02:00
|
|
|
all: $(TARGETS)
|
|
|
|
|
2021-12-18 17:42:23 +01:00
|
|
|
acsmdownloader: acsmdownloader.cpp $(COMMON_DEPS)
|
|
|
|
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
adept_activate: adept_activate.cpp $(COMMON_DEPS)
|
2021-07-03 21:57:53 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
2021-12-18 17:42:23 +01:00
|
|
|
adept_remove: adept_remove.cpp $(COMMON_DEPS)
|
2021-07-03 21:57:53 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|
|
|
|
ultraclean: clean
|