popnhax/Module.mk

29 lines
735 B
Makefile
Raw Permalink Normal View History

2023-02-10 20:29:11 +01:00
cflags += -DWIN32_LEAN_AND_MEAN -DCOBJMACROS -Ipkcs11 -Wno-attributes
avsvers_32 := 1700 1508
avsvers_64 := 1700 1509
imps += avs avs-ea3
include util/Module.mk
include minhook/Module.mk
include popnhax/Module.mk
#
# Distribution build rules
#
zipdir := $(BUILDDIR)/zip
2024-05-02 14:07:22 +02:00
popnhax_version := $(shell grep "define PROGRAM_VERSION" popnhax/dllmain.cc | cut -d'"' -f2)
$(BUILDDIR)/popnhax_$(popnhax_version).zip: \
build/bin/avs2_1508-32/popnhax.dll
@echo ... $@
@mkdir -p $(zipdir)
@cp -a -p build/bin/avs2_1508-32/popnhax.dll $(zipdir)
@cp -r -a -p dist/popnhax/* $(zipdir)
@cd $(zipdir) \
&& zip -r ../popnhax_$(popnhax_version).zip ./*
all: $(BUILDDIR)/popnhax_$(popnhax_version).zip