2023-09-25 01:49:34 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# SPDX-FileCopyrightText: 2023 Nicholas Chin
|
2023-04-19 06:26:39 +00:00
|
|
|
|
|
|
|
CC=cc
|
|
|
|
CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
|
2023-10-12 23:57:06 +00:00
|
|
|
SRCS=dell_flash_unlock.c accessors.c
|
2023-04-19 06:26:39 +00:00
|
|
|
|
2023-10-10 04:36:33 +00:00
|
|
|
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-04-19 06:26:39 +00:00
|
|
|
|
|
|
|
clean:
|
2023-10-12 23:57:06 +00:00
|
|
|
rm -f dell_flash_unlock
|