同步内网版本
This commit is contained in:
23
demo/Makefile
Normal file
23
demo/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
vpath %.h ../inc
|
||||
vpath %.a ../lib
|
||||
|
||||
CC=gcc
|
||||
|
||||
CFLAGS= -g3 -Wall -fPIC -O -Werror
|
||||
CFLAGS+=-I../inc/
|
||||
|
||||
LIB=-L../lib/
|
||||
LIB+=-lMESA_handle_logger -lpthread
|
||||
|
||||
LIB_FILE=$(wildcard ../lib/*.a)
|
||||
|
||||
SRC=test_handle_logger.c
|
||||
TARGET=test_handle_logger
|
||||
|
||||
all:$(TARGET)
|
||||
|
||||
$(TARGET):$(SRC) $(LIB_FILE)
|
||||
$(CC) $(CFLAGS) $(INC) $(LIBPATH) $< -static $(LIB) -o $@
|
||||
|
||||
clean :
|
||||
rm -f $(TARGET)
|
||||
Reference in New Issue
Block a user