initialize

This commit is contained in:
崔一鸣
2018-08-12 19:11:04 +08:00
parent 17e2e2050a
commit a76c0d285f
16 changed files with 8627 additions and 0 deletions

22
sample/old/Makefile Normal file
View File

@@ -0,0 +1,22 @@
CC = gcc
TARGET = test_handle_logger
CFLAGS = -g -Wall -fPIC
LIB = -L../../lib/
LIB += -lMESA_handle_logger -lpthread
INCLUDES = -I../../include/
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:.c=.o)
DEPS = $(SOURCES:.c=.d)
.PHONY : clean all install
all : $(TARGET)
$(TARGET) : $(OBJECTS)
$(CC) $(CFLAGS) -o $(TARGET) $(LIB) $(OBJECTS)
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
%.d : %.c
$(CC) $< -MM $(INCLUDES) > $@
-include $(DEPS)
clean :
-rm $(TARGET) $(OBJECTS) $(DEPS)