blob: 8528c10e0118e5f54700462a6e2cf58b5921422e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2023 Nicholas Chin
CC=cc
CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
SRCS=dell_flash_unlock.c accessors.c
all: $(SRCS) accessors.h
CFLAGS="$(CFLAGS)"; \
if [ $$(uname) = OpenBSD ] || [ $$(uname) = NetBSD ]; then \
CFLAGS="$$CFLAGS -l$$(uname -p)"; \
fi; \
$(CC) $$CFLAGS $(SRCS) -o dell_flash_unlock
clean:
rm -f dell_flash_unlock
|