Skip to content

Instantly share code, notes, and snippets.

View gvanem's full-sized avatar

Gisle Vanem gvanem

View GitHub Profile
@gvanem
gvanem / gist:f54eefad9e84954d390c8bd939ec34ae
Last active December 10, 2023 00:14
GNU-makefile for Hamlib (MSVC+clang-cl)
#
# GNU Makefile for Hamlib (MSVC / clang-cl).
#
# G. Vanem <gvanem@yahoo.no> 2019 - 2023.
#
THIS_FILE := Makefile.Windows
DATE := $(shell date +%d-%B-%Y)
ABI_VER := 4
comma := ,
@gvanem
gvanem / Makefile.Windows
Last active October 6, 2023 09:05
Makefile for curl-impersonate-chrome.exe
#
# Makefile for curl-impersonate-chrome.exe supporting MSVC or clang-cl.
# by Gisle Vanem <gvanem@yahoo.no>
#
# Ref: https://github.com/lwthiker/curl-impersonate.git
#
# Options and roots. Change to suite.
#
CURL_ROOT ?= ..
CARES_ROOT ?= f:/MinGW32/src/inet/DNS/C-ares
@gvanem
gvanem / Makefile.Windows
Last active April 5, 2023 07:42
GNU-makefile for NPcap's NPF.sys driver
#
# GNU Makefile for the 'NPcap driver'.
# For MSVC + clang-cl, 32/64 bits.
#
# By <gvanem@yahoo.no> 2023.
#
TARGETS := NPcap.sys
THIS_FILE := Makefile.Windows
MAKEFLAGS += --warn-undefined-variables
@gvanem
gvanem / Makefile.Windows
Last active February 16, 2023 10:02
GNU-makefile for Nettle + Hogweed (MSVC/clang-cl, x86/x64)
#
# Nettle + Hogweed Makefile for MSVC and clang-cl.
#
MAJOR_VERSION = 3
MINOR_VERSION = 8
PATCH_VERSION = 0
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)
MAKEFLAGS += --warn-undefined-variables
@gvanem
gvanem / Makefile.Windows
Last active January 3, 2024 11:25
A GNU-makefile for LTui (MSCV+clang-cl). Ref: https://github.com/tboox/ltui/
#
# GNUmake Makefile for Ltui (MSVC + clang-cl).
# Ref:
# https://github.com/tboox/ltui.git
#
# G.Vanem <gvanem@yahoo.no>, 2022.
#
TODAY := $(shell date +%d-%B-%Y)
THIS_FILE := Makefile.Windows
PYTHON ?= py -3
@gvanem
gvanem / pcap-main.c
Last active June 22, 2022 07:01
A simple pcap-based example for Mongoose with MIP (mini-TCP/IP). Could be added as "examples/pcap/main.c"
#include <pcap/pcap.h>
#include <pcap-int.h>
#include <stdint.h>
#include <stdarg.h>
#include <signal.h>
#ifdef _WIN32
#include <ntddndis.h>
#endif
@gvanem
gvanem / Makefile.Windows
Last active December 23, 2021 13:01
GNU-makefile for the SDR-Radio program Quisk
#
# GNU Makefile for the SDR-Radio program Quisk.
#
# Supporting MinGW only. MSVC or clang-cl is not possible due
# to lack of C99 "complex types" support.
#
# By G. Vanem <gvanem@yahoo.no> 2020 - 2021.
#
# Ref: http://james.ahlstrom.name/quisk/
# https://pypi.org/project/quisk/#files
@gvanem
gvanem / Makefile.Windows
Last active April 26, 2023 22:20
Wget2 stuff for Windows (clang-cl): added 'libwget/mswindows.[ch]' and 'Makefile.Windows'.
#
# GNU Makefile for Wget2 (MSVC and clang-cl).
# 32-bit only.
#
# By <gvanem@yahoo.no> 2015 - 2021.
#
THIS_FILE = Makefile.Windows
THIS_DIR = $(realpath .)
comma := ,
@gvanem
gvanem / run_test.py
Created September 25, 2021 17:19
RTL_433 test script
#!/usr/bin/env python3
"""Compare actual output Json-formatted output lines of
rtl_433 with reference json."""
import sys
import os
import argparse
import fnmatch
@gvanem
gvanem / Makefile.Windows
Last active September 9, 2021 11:57
A GNU-makefile for DearPyGui (MSVC / clang-cl)
#
# GNU Makefile for DearPyGui (MSVC / clang-cl).
#
# By G. Vanem <gvanem@yahoo.no> 2021.
#
# Ref: https://github.com/hoffstadt/DearPyGui.git
#
TODAY = $(shell date +%d-%B-%Y)
THIS_FILE = $(firstword $(MAKEFILE_LIST))