mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
Swap make and tar.
This commit is contained in:
parent
b9079045db
commit
e4f5342ee4
6 changed files with 55 additions and 59 deletions
36
sysa/tar-1.12/mk/main.mk
Normal file
36
sysa/tar-1.12/mk/main.mk
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
CC = tcc
|
||||
AR = tcc -ar
|
||||
|
||||
# -DSIZEOF_UNSIGNED_LONG=4 forces use of simulated arithmetic
|
||||
# This is to avoid running configure test to determine sizeof(long long)
|
||||
CPPFLAGS = -DHAVE_FCNTL_H \
|
||||
-DHAVE_DIRENT_H \
|
||||
-DHAVE_GETCWD_H \
|
||||
-DHAVE_GETCWD \
|
||||
-DSIZEOF_UNSIGNED_LONG=4 \
|
||||
-DVERSION=\"1.12\" \
|
||||
-DPACKAGE=\"tar\"
|
||||
|
||||
CFLAGS = -I . -I lib -static
|
||||
LDFLAGS = -L. -ltar
|
||||
|
||||
.PHONY: all
|
||||
|
||||
LIB_SRC = argmatch backupfile error fnmatch ftruncate getdate_stub getopt getopt1 getversion modechange msleep xgetcwd xmalloc xstrdup
|
||||
|
||||
LIB_OBJ = $(addprefix lib/, $(addsuffix .o, $(LIB_SRC)))
|
||||
|
||||
TAR_SRC = arith buffer compare create delete extract incremen list mangle misc names open3 rtapelib tar update
|
||||
TAR_OBJ = $(addprefix src/, $(addsuffix .o, $(TAR_SRC)))
|
||||
|
||||
all: tar
|
||||
|
||||
libtar.a: $(LIB_OBJ)
|
||||
$(AR) cr $@ $^
|
||||
|
||||
tar: libtar.a $(TAR_OBJ)
|
||||
$(CC) $^ $(LDFLAGS) -o $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue