This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cuiyiming-mesa-flexible-logger/sample/new/Makefile
2018-08-12 19:11:04 +08:00

23 lines
484 B
Makefile

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)