1 --- Makefile.orig 2015-02-27 21:17:45.000000000 +0300
2 +++ Makefile 2022-09-17 17:52:46.195305832 +0300
6 #CFLAGS=-Wall -g -ansi -fPIC -pthread
7 -CFLAGS=-Wall -O3 -ansi -fPIC -pthread
8 +CFLAGS+=-ansi -pthread
13 all: sonic libsonic.so.$(LIB_TAG) libsonic.a
15 sonic: wave.o main.o libsonic.so.$(LIB_TAG)
16 - $(CC) $(CFLAGS) -o sonic wave.o main.o libsonic.so.$(LIB_TAG)
17 + $(CC) $(CFLAGS) $(LDFLAGS) -o sonic wave.o main.o libsonic.so.$(LIB_TAG)
19 sonic.o: sonic.c sonic.h
20 $(CC) $(CFLAGS) -c sonic.c
22 $(CC) $(CFLAGS) -c main.c
24 libsonic.so.$(LIB_TAG): sonic.o
25 - $(CC) $(CFLAGS) -shared -Wl,-$(SONAME),libsonic.so.0 sonic.o -o libsonic.so.$(LIB_TAG)
26 + $(CC) $(CFLAGS) -shared $(LDFLAGS),-$(SONAME),libsonic.so.0 sonic.o -o libsonic.so.$(LIB_TAG)
27 ln -sf libsonic.so.$(LIB_TAG) libsonic.so
28 ln -sf libsonic.so.$(LIB_TAG) libsonic.so.0