From 743eb5a4a2869965d17f22d4991e62d99028dc54 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 31 Mar 2025 16:26:00 +0300 Subject: [PATCH] tpws makefile support systemd target for old systems --- tpws/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpws/Makefile b/tpws/Makefile index a50bb5f..2f53263 100644 --- a/tpws/Makefile +++ b/tpws/Makefile @@ -3,7 +3,7 @@ CFLAGS += -std=gnu99 -Os -flto=auto CFLAGS_SYSTEMD = -DUSE_SYSTEMD CFLAGS_BSD = -Wno-address-of-packed-member LIBS = -lz -lpthread -LIBS_SYSTEMD = -lz -lsystemd +LIBS_SYSTEMD = -lsystemd LIBS_ANDROID = -lz SRC_FILES = *.c SRC_FILES_ANDROID = $(SRC_FILES) andr/*.c @@ -14,7 +14,7 @@ tpws: $(SRC_FILES) $(CC) -s $(CFLAGS) -o tpws $(SRC_FILES) $(LIBS) $(LDFLAGS) systemd: $(SRC_FILES) - $(CC) -s $(CFLAGS) $(CFLAGS_SYSTEMD) -o tpws $(SRC_FILES) $(LIBS_SYSTEMD) $(LDFLAGS) + $(CC) -s $(CFLAGS) $(CFLAGS_SYSTEMD) -o tpws $(SRC_FILES) $(LIBS) $(LIBS_SYSTEMD) $(LDFLAGS) android: $(SRC_FILES) $(CC) -s $(CFLAGS) -o tpws $(SRC_FILES_ANDROID) $(LIBS_ANDROID) $(LDFLAGS)