common.mk 588 B

12345678910111213141516171819202122232425
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. #
  3. # Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
  4. # Copyright (C) 2022 Leah Rowe <leah@libreboot.org>
  5. $(OBJ): config
  6. config:
  7. @echo "VERSION = $(VERSION)"
  8. @echo "CFLAGS = $(CFLAGS)"
  9. @echo "CC = $(CC)"
  10. @echo "DESTDIR = $(DESTDIR)"
  11. @echo "PREFIX = $(PREFIX)"
  12. @echo "INCLUDE_EXTRA = $(INCLUDE_EXTRA)"
  13. .o:
  14. [ ! -e $< ] || $(CC) $(CFLAGS) $< ../common/common.c -o $@
  15. .c.o:
  16. [ ! -e $< ] || $(CC) $(CFLAGS) $(NOLINKER) $< -o $@
  17. # Cleaning
  18. clean:
  19. rm -f *.o version.h $(CORE)