yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # include ZTE library makefile |
| 3 | #******************************************************************************* |
| 4 | include $(COMMON_MK) |
| 5 | |
| 6 | ##############USER COMIZE BEGIN################ |
| 7 | #include ../net_team.mk
|
| 8 | |
| 9 | LIB_STATIC = libsqlite.a
|
| 10 | LIB_SHARED = libsqlite.so
|
| 11 |
|
| 12 | OBJS = sqlite3.o
|
| 13 | |
| 14 | CFLAGS += -g |
| 15 | |
| 16 | ##############USER COMIZE END################## |
| 17 | |
| 18 | CFLAGS += -I$(zte_app_path)/include |
| 19 | CFLAGS += -fPIC
|
| 20 | LDFLAGS += -shared |
| 21 | |
| 22 | all: $(LIB_STATIC) $(LIB_SHARED)
|
| 23 |
|
| 24 | $(LIB_STATIC) : $(OBJS) |
| 25 | $(AR) rcs $(LIB_STATIC) $(OBJS)
|
| 26 | |
| 27 | $(LIB_SHARED): $(OBJS) |
| 28 | $(CC) $(LDFLAGS) -o $@ $^ |
| 29 |
|
| 30 | romfs:
|
| 31 | $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
|
| 32 |
|
| 33 | clean: |
| 34 | -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
|
| 35 |
|