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
mesa-framework-mesa-handle-…/src/Makefile

31 lines
513 B
Makefile
Raw Normal View History

2018-11-15 17:10:05 +08:00
CC=gcc
VPATH=../inc
CFLAGS= -g3 -Wall -fPIC -O -Werror
CFLAGS+=-I../inc/
ifdef ASAN
CFLAGS_+= -fsanitize=address -fno-omit-frame-pointer
LIB+=-lasan
endif
2018-11-15 17:10:05 +08:00
SRC=MESA_handle_logger.c
OBJS=$(SRC:.c=.o)
TARGET=libMESA_handle_logger.a libMESA_handle_logger.so
all:$(TARGET)
cp -f $(TARGET) ../lib
libMESA_handle_logger.a:$(OBJS)
ar cqs $@ $<
libMESA_handle_logger.so:$(OBJS)
$(CC) $(CFLAGS) $(LIB) -shared $< -o $@
2018-11-15 17:10:05 +08:00
.c.o:
#$(OBJS):$(SRC)
# $(CC) $(CFLAGS) $(INC) -c $< -o $@
clean :
rm -f $(OBJS) $(TARGET)