Makefile 336 B

12345678910111213141516
  1. # SPDX-License-Identifier: MIT
  2. # SPDX-FileCopyrightText: 2023 Nicholas Chin
  3. CC=cc
  4. CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
  5. ifeq ($(shell uname), OpenBSD)
  6. CFLAGS += -l$(shell uname -p)
  7. endif
  8. SRCS=dell_flash_unlock.c accessors.c
  9. all: $(SRCS) accessors.h
  10. $(CC) $(CFLAGS) $(SRCS) -o dell_flash_unlock
  11. clean:
  12. rm -f dell_flash_unlock