Initial submission of source code, no bugs found

This commit is contained in:
2019-06-27 20:45:31 +08:00
parent 5105ad7eac
commit 71266f6d68
6 changed files with 162 additions and 1 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
LIBS = libini.so
SLIB = libini.a
all: libini.o
$(CC) $(CFLAGS) -FPIC -shared $^ -o $(LIBS)
$(AR) -rc $(SLIB) $^
clean:
rm -rf *.o
rm $(LIBS) $(SLIB)