shithub: rott

ref: 14257941774d9c6e8fbff6632ba7cf02d1ce9c10
dir: /src/audiolib/Makefile/

View raw version
AUDIOLIB ?= audiolib.a

AR ?= ar
CC ?= gcc
RANLIB ?= ranlib

ARFLAGS ?= rcT

CFLAGS ?= -std=c17 -g -Og
CFLAGS += -Wall -Wextra -Wshadow -Wpedantic
CFLAGS += $(shell sdl2-config --cflags)

OBJS :=
OBJS += fx_man.o
OBJS += dsl.o
OBJS += ll_man.o
OBJS += multivoc.o
OBJS += mv_mix.o
OBJS += mvreverb.o
OBJS += nodpmi.o
OBJS += pitch.o
OBJS += user.o
OBJS += usrhooks.o

$(AUDIOLIB): $(OBJS)
	$(RM) $@
	$(AR) $(ARFLAGS) $@ $^
	$(RANLIB) $@

clean:
	$(RM) $(AUDIOLIB) $(OBJS)