Makefile 397 B

1234567891011121314151617
  1. # SPDX-License-Identifier: MIT
  2. # SPDX-FileCopyrightText: 2023 Nicholas Chin
  3. CC=cc
  4. CFLAGS=-Wall -Wextra -Werror -O2 -pedantic
  5. SRCS=dell_flash_unlock.c accessors.c
  6. all: $(SRCS) accessors.h
  7. CFLAGS="$(CFLAGS)"; \
  8. if [ $$(uname) = OpenBSD ] || [ $$(uname) = NetBSD ]; then \
  9. CFLAGS="$$CFLAGS -l$$(uname -p)"; \
  10. fi; \
  11. $(CC) $$CFLAGS $(SRCS) -o dell_flash_unlock
  12. clean:
  13. rm -f dell_flash_unlock