mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
dell-flash-unlock: Remove dependency on GNU Make
Use shell scripting in the recipe instead of GNU make's conditional syntax. This allows the Makefile to work with the default implementations of make on the BSDs. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
This commit is contained in:
@@ -3,16 +3,14 @@
|
||||
|
||||
CC=cc
|
||||
CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
|
||||
ifeq ($(shell uname), OpenBSD)
|
||||
CFLAGS += -l$(shell uname -p)
|
||||
endif
|
||||
ifeq ($(shell uname), NetBSD)
|
||||
CFLAGS += -l$(shell uname -p)
|
||||
endif
|
||||
SRCS=dell_flash_unlock.c accessors.c
|
||||
|
||||
all: $(SRCS) accessors.h
|
||||
$(CC) $(CFLAGS) $(SRCS) -o dell_flash_unlock
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user