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-10 04:36:33 +00:00
|
|
|
ifeq ($(shell uname), OpenBSD)
|
|
|
|
CFLAGS += -l$(shell uname -p)
|
|
|
|
endif
|
2024-03-16 05:33:10 +00:00
|
|
|
ifeq ($(shell uname), NetBSD)
|
|
|
|
CFLAGS += -l$(shell uname -p)
|
|
|
|
endif
|
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
|
2023-10-12 23:57:06 +00:00
|
|
|
$(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
|