Skip to content

Commit c0acc08

Browse files
committed
1.3.3: remove asm
1 parent 0233391 commit c0acc08

File tree

17 files changed

+4036
-3708
lines changed

17 files changed

+4036
-3708
lines changed

Makefile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ CC = gcc
44
TARGET = wavegain
55
CFLAGS += -Wall
66
DEFS = -DHAVE_CONFIG_H
7-
LIBS = -lm
7+
LDFLAGS = -lm
88
SOURCES := $(wildcard src/*.c)
99
HEADERS := $(wildcard src/*.h)
10+
INSTALL = install -s -D
11+
RM = rm -f
1012

1113
prefix = /usr/local
1214
bindir = $(prefix)/bin
1315

16+
ifeq ($(shell uname -s), Windows_NT)
17+
LDFLAGS += -static -lssp
18+
endif
19+
1420
all: release
1521

1622
# DEBUG Build
@@ -27,7 +33,7 @@ debug: clean $(TARGET)
2733
# -s: Strip executable (remove all symbol table and relocation information)
2834
# -O2: Optimize level 2 and activate default FORTIFY_SOURCE=2 in most setups
2935
# -D_FORTIFY_SOURCE=2: explicitely enable additional compile-time and run-time checks for several libc functions
30-
release: CFLAGS += -s -O2 -D_FORTIFY_SOURCE=2
36+
release: CFLAGS += -O2 -D_FORTIFY_SOURCE=2 -s
3137
release: clean $(TARGET)
3238

3339
# ASAN (Address Sanitizer) build.
@@ -39,17 +45,17 @@ release: clean $(TARGET)
3945
asan: CFLAGS += -g3 -O2 -U_FORTIFY_SOURCE -fsanitize=address -fno-omit-frame-pointer -static-libasan
4046
asan: clean $(TARGET)
4147

42-
$(TARGET): $(SOURCES) $(HEADERS)
43-
$(CC) $(CFLAGS) $(DEFS) -o $(TARGET) $(SOURCES) $(LIBS)
48+
$(TARGET): $(SOURCES)
49+
$(CC) $(CFLAGS) $(DEFS) $^ $(LDFLAGS) -o $@
4450

4551
install: $(TARGET)
46-
install -s -D $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
52+
$(INSTALL) $< $(DESTDIR)$(bindir)/$<
4753

4854
uninstall:
49-
rm -f $(DESTDIR)$(bindir)/$(TARGET)
55+
$(RM) $(DESTDIR)$(bindir)/$(TARGET)
5056

5157
clean:
52-
rm -f $(TARGET)
58+
$(RM) $(TARGET)
5359

5460
distclean: clean
5561

debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
wavegain (1.3.3) testing; urgency=low
2+
3+
* remove all "asm".
4+
5+
-- zvezdochiot <mykaralw@yandex.ru> Jan 18, 2023
6+
7+
wavegain (1.3.2) stable; urgency=low
8+
9+
* fix repeat definition.
10+
11+
-- zvezdochiot <mykaralw@yandex.ru> Jul 4, 2022
12+
113
wavegain (1.3.1-1) unstable; urgency=low
214

315
* Initial release. (Closes: #690738)

0 commit comments

Comments
 (0)