logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

main.mk (428B)


  1. # SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-3.0-or-later
  4. CC = tcc
  5. AR = tcc -ar
  6. CPPFLAGS = -DNO_UTIME \
  7. -Dstrlwr=unused
  8. CFLAGS = -I .
  9. LDFLAGS = -static
  10. .PHONY: all
  11. GZIP_SRC = gzip bits crypt deflate getopt inflate lzw trees unlzh unlzw unpack unzip util zip
  12. GZIP_OBJ = $(addsuffix .o, $(GZIP_SRC))
  13. all: gzip
  14. gzip: $(GZIP_OBJ)
  15. $(CC) $(LDFLAGS) $^ -o $@