2023-10-26 19:11:40 +00:00
|
|
|
# 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
|
2024-05-02 03:39:13 +00:00
|
|
|
CFLAGS="$(CFLAGS)"; \
|
|
|
|
if [ $$(uname) = OpenBSD ] || [ $$(uname) = NetBSD ]; then \
|
|
|
|
CFLAGS="$$CFLAGS -l$$(uname -p)"; \
|
|
|
|
fi; \
|
|
|
|
$(CC) $$CFLAGS $(SRCS) -o dell_flash_unlock
|
2023-10-26 19:11:40 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f dell_flash_unlock
|