mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
Added an OpenWRT Makefile
Thanks to datahead.
This commit is contained in:
parent
f5e4bc0075
commit
571f5a55ba
33
Makefile
Normal file
33
Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pixiewps
|
||||
PKG_RELEASE:=1.1
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/pixiewps
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=wireless
|
||||
TITLE:=An offline WPS Bruteforce utility
|
||||
DEPENDS:=+libopenssl
|
||||
URL:=https://github.com/wiire/pixiewps
|
||||
endef
|
||||
|
||||
define Package/pixiewps/description
|
||||
An offline WPS Bruteforce utility
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Package/pixiewps/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,pixiewps))
|
@ -1,15 +1,15 @@
|
||||
CCFLAGS = -std=c99 -O3
|
||||
LDFLAGS = -lssl -lcrypto
|
||||
LDFLAGS = -lcrypto
|
||||
|
||||
TARGET = pixiewps
|
||||
PREFIX = $(DESTDIR)/usr/local
|
||||
PREFIX = $(DESTDIR)/usr
|
||||
BINDIR = $(PREFIX)/bin
|
||||
|
||||
all:
|
||||
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c random_r.c $(LDFLAGS)
|
||||
|
||||
install:
|
||||
install -D pixiewps $(BINDIR)/$(TARGET)
|
||||
install -D $(TARGET) $(BINDIR)/$(TARGET)
|
||||
install -m 755 $(TARGET) $(BINDIR)
|
||||
|
||||
uninstall:
|
||||
|
Loading…
x
Reference in New Issue
Block a user