Skip to content

Commit

Permalink
1.3.3: remove asm
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jan 18, 2023
1 parent 0233391 commit c0acc08
Show file tree
Hide file tree
Showing 17 changed files with 4,036 additions and 3,708 deletions.
20 changes: 13 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ CC = gcc
TARGET = wavegain
CFLAGS += -Wall
DEFS = -DHAVE_CONFIG_H
LIBS = -lm
LDFLAGS = -lm
SOURCES := $(wildcard src/*.c)
HEADERS := $(wildcard src/*.h)
INSTALL = install -s -D
RM = rm -f

prefix = /usr/local
bindir = $(prefix)/bin

ifeq ($(shell uname -s), Windows_NT)
LDFLAGS += -static -lssp
endif

all: release

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

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

$(TARGET): $(SOURCES) $(HEADERS)
$(CC) $(CFLAGS) $(DEFS) -o $(TARGET) $(SOURCES) $(LIBS)
$(TARGET): $(SOURCES)
$(CC) $(CFLAGS) $(DEFS) $^ $(LDFLAGS) -o $@

install: $(TARGET)
install -s -D $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
$(INSTALL) $< $(DESTDIR)$(bindir)/$<

uninstall:
rm -f $(DESTDIR)$(bindir)/$(TARGET)
$(RM) $(DESTDIR)$(bindir)/$(TARGET)

clean:
rm -f $(TARGET)
$(RM) $(TARGET)

distclean: clean

Expand Down
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
wavegain (1.3.3) testing; urgency=low

* remove all "asm".

-- zvezdochiot <[email protected]> Jan 18, 2023

wavegain (1.3.2) stable; urgency=low

* fix repeat definition.

-- zvezdochiot <[email protected]> Jul 4, 2022

wavegain (1.3.1-1) unstable; urgency=low

* Initial release. (Closes: #690738)
Expand Down
Loading

0 comments on commit c0acc08

Please sign in to comment.