Initial submission

This commit is contained in:
2020-06-08 16:46:34 +08:00
commit 48a6ea7d14
6 changed files with 197 additions and 0 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
AR := $(CROSS_COMPILE)ar
CFLAGS += -g -Wall
DLIB = libconf.so
SLIB = libconf.a
all: libconf.o
$(CC) $(CFLAGS) -FPIC -shared $^ -o $(DLIB)
$(AR) -rc $(SLIB) $^
clean:
rm -rf *.o
rm $(DLIB) $(SLIB)