initialize
This commit is contained in:
22
sample/old/Makefile
Normal file
22
sample/old/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user