Skip to content

Commit

Permalink
CI: sync code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 9, 2024
1 parent 236c912 commit ad53d5e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
11 changes: 5 additions & 6 deletions package/vlmcsd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=vlmcsd
PKG_VERSION:=svn1113
PKG_RELEASE:=3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/Wind4/vlmcsd/tar.gz/$(PKG_VERSION)?
PKG_HASH:=62f55c48f5de1249c2348ab6b96dabbe7e38899230954b0c8774efb01d9c42cc

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=fuyumi <[email protected]>

PKG_BUILD_PARALLEL:=1
Expand All @@ -20,16 +18,17 @@ define Package/vlmcsd
SECTION:=net
CATEGORY:=Network
TITLE:=vlmcsd for OpenWRT
URL:=http://forums.mydigitallife.info/threads/50234
DEPENDS:=+libpthread
endef

define Package/vlmcsd/description
vlmcsd is a KMS Emulator in C.
endef

MAKE_FLAGS += \
-C $(PKG_BUILD_DIR)
define Build/Prepare
$(call Build/Prepare/Default)
rm $(PKG_BUILD_DIR)/GNUmakefile
endef

define Package/vlmcsd/install
$(INSTALL_DIR) $(1)/usr/bin
Expand Down
35 changes: 35 additions & 0 deletions package/vlmcsd/src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SRCDIR := src
BINDIR := bin
OBJDIR := build

TARGETS := $(BINDIR)/vlmcs $(BINDIR)/vlmcsd

.PHONY: all
all: $(BINDIR) $(TARGETS)

$(BINDIR)/vlmcs: $(OBJDIR)/vlmcs.o $(OBJDIR)/kmsdata-full.o $(OBJDIR)/crypto.o \
$(OBJDIR)/kms.o $(OBJDIR)/endian.o $(OBJDIR)/output.o \
$(OBJDIR)/shared_globals.o $(OBJDIR)/helpers.o \
$(OBJDIR)/network.o $(OBJDIR)/rpc.o \
$(OBJDIR)/crypto_internal.o $(OBJDIR)/dns_srv.o
$(CC) $(LDFLAGS) -o $@ $^

$(BINDIR)/vlmcsd: $(OBJDIR)/vlmcsd.o $(OBJDIR)/kmsdata.o $(OBJDIR)/crypto.o \
$(OBJDIR)/kms.o $(OBJDIR)/endian.o $(OBJDIR)/output.o \
$(OBJDIR)/shared_globals.o $(OBJDIR)/helpers.o \
$(OBJDIR)/network.o $(OBJDIR)/rpc.o \
$(OBJDIR)/crypto_internal.o
$(CC) $(LDFLAGS) -o $@ $^

$(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR)
$(CC) $(CFLAGS) -c $< -o $@

$(OBJDIR):
@mkdir -p $(OBJDIR)

$(BINDIR):
@mkdir -p $(BINDIR)

.PHONY: clean
clean:
@rm -rf $(OBJDIR) $(BINDIR)

0 comments on commit ad53d5e

Please sign in to comment.