summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-29 03:46:34 -0300
committerEuAndreh <eu@euandre.org>2024-02-29 03:46:34 -0300
commit66dd8edd400a3079cae9146404a9485ebeaa4027 (patch)
tree8b8fe4e2c9e2e1d6c7a7c8e8a3de501394868754 /Makefile
parentgit rm doc/pindaiba.{CHANGELOG,README,TODOs}.en.7.in (diff)
downloadpindaiba-66dd8edd400a3079cae9146404a9485ebeaa4027.tar.gz
pindaiba-66dd8edd400a3079cae9146404a9485ebeaa4027.tar.xz
Makefile: Use .a over .xa for executable archives
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 61ad077..02b9166 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ LDLIBS = -lsiphash
.SUFFIXES:
-.SUFFIXES: .in .c .o .to .xa .bin .msg .cat .bin-check
+.SUFFIXES: .in .c .o .to .a .bin .msg .cat .bin-check
.in:
sed \
@@ -38,7 +38,7 @@ LDLIBS = -lsiphash
.c.to:
$(CC) $(CFLAGS) -DTEST -o $@ -c $<
-.xa.bin:
+.a.bin:
$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)
@@ -52,17 +52,17 @@ catalogs.cat = $(catalogs.msg:.msg=.cat)
sources.h = $(sources.c:.c=.h)
sources.o = $(sources.c:.c=.o)
sources.to = $(sources.c:.c=.to)
-sources.xa = $(sources.c:.c=.xa)
+sources.a = $(sources.c:.c=.a)
sources.bin = $(sources.c:.c=.bin)
fuzz.o = $(fuzz.c:.c=.o)
-fuzz.xa = $(fuzz.c:.c=.xa)
+fuzz.a = $(fuzz.c:.c=.a)
fuzz.bin = $(fuzz.c:.c=.bin)
archives = \
lib$(NAME).a \
- $(sources.xa) \
- src/main.xa \
- $(fuzz.xa) \
+ $(sources.a) \
+ src/main.a \
+ $(fuzz.a) \
sources = \
$(sources.c) \
@@ -81,16 +81,16 @@ derived-assets = \
$(catalogs.cat) \
$(sources.o) \
$(sources.to) \
- $(sources.xa) \
+ $(sources.a) \
$(sources.bin) \
tests/slurp.o \
src/main.o \
- src/main.xa \
+ src/main.a \
src/main.bin \
side-assets = \
$(fuzz.o) \
- $(fuzz.xa) \
+ $(fuzz.a) \
$(fuzz.bin) \
src/logerr.c.txt \
src/catalog.c.txt \
@@ -103,7 +103,7 @@ all: $(derived-assets)
lib$(NAME).a: $(sources.o)
-src/main.xa: $(sources.o) src/main.o
+src/main.a: $(sources.o) src/main.o
$(fuzz.bin): lib$(NAME).a
$(manpages) src/config.h: Makefile deps.mk
$(sources.o) $(sources.to): Makefile deps.mk src/config.h