sdk-hwV1.3/external/fast-user-adapter/rt_media/tinyalsa/Makefile

30 lines
541 B
Makefile
Executable File

CFLAGS = -c -fPIC -Wall
INC = include/tinyalsa/
#OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
LIB_STATIC = libtinyalsa.a
CROSS_COMPILE =
CC ?= $(CROSS_COMPILE)gcc
AR ?= $(CROSS_COMPILE)ar
SRCS=$(wildcard *.c)
OBJECTS=$(SRCS:.c=.o)
DEPS=$(SRCS:.c=.d)
$(warning "the CC is : $(CC)")
$(warning "the AR is : $(AR)")
all: $(LIB)
-include $(DEPS)
$(LIB): $(OBJECTS)
$(CC) -shared $(OBJECTS) -o $(LIB)
$(AR) r $(LIB_STATIC) $(OBJECTS)
.c.o:
$(CC) $(CFLAGS) $< -I$(INC) -MD -MF $*.d -MP
clean:
-rm $(LIB) $(OBJECTS) $(DEPS) $(LIB_STATIC)