25 lines
482 B
Makefile
Executable File
25 lines
482 B
Makefile
Executable File
|
|
SRCDIRS =./ \
|
|
|
|
INCLUDES := $(foreach dir,$(SRCDIRS),-I$(dir))
|
|
|
|
SRCCS = $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c))
|
|
|
|
LOCAL_FLAGS := -Wall -O0 -g -D__OS_LINUX
|
|
|
|
INCLUDES += -I../../include/base/ -I../../ -I../../include/demux/
|
|
|
|
LIBS += -lpthread -lMemAdapter -ltsc -L../../lib
|
|
|
|
TARGET = tscTest
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(SRCCS)
|
|
$(CC) $(CFLAGS) $(LOCAL_FLAGS) $(INCLUDES) $(LIBS) -o $@ $^
|
|
cp ./tscTest ../../lib/
|
|
|
|
clean:
|
|
-rm -f $(TARGET)
|
|
-rm -f ../../lib/tscTest
|