blob: 8fc7f26478342162708ac84a517ec780464d49ac [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7LIB_STATIC = libsoft_timer.a
8LIB_SHARED = libsoft_timer.so
9
10OBJS = soft_timer.o
11
12CFLAGS += -g
13
14LDFLAGS += -lpthread
15
16##############USER COMIZE END##################
17
18CFLAGS += -I$(APP_DIR)/include
19CFLAGS += -fPIC
20
21LDFLAGS += -shared
22
23all: $(LIB_STATIC) $(LIB_SHARED)
24
25$(LIB_STATIC) : $(OBJS)
26 $(AR) rcs $(LIB_STATIC) $(OBJS)
27
28$(LIB_SHARED): $(OBJS)
29 $(CC) $(LDFLAGS) -o $@ $^
30
31romfs:
32 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
33
34clean:
35 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
36