X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Ftreestore%2FMakefile;fp=libs%2Ftreestore%2FMakefile;h=cb9f7b30410caad9e184ec44f2a965025e170542;hb=313480bbe9994a200ed9a4355d97a033bf0d6151;hp=0000000000000000000000000000000000000000;hpb=ef6f5c2822eb91ea7df55e88018f566be04ad287;p=andemo diff --git a/libs/treestore/Makefile b/libs/treestore/Makefile new file mode 100644 index 0000000..cb9f7b3 --- /dev/null +++ b/libs/treestore/Makefile @@ -0,0 +1,27 @@ +obj = treestore.o text.o dynarr.o +lib = ../unix/libtreestore.a + +sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/') +ifeq ($(sys), mingw) + obj = treestore.w32.o text.w32.o dynarr.w32.o + lib = ../w32/libtreestore.a +endif +ifeq ($(sys), android-arm64) + obj = treestore.arm64.o text.arm64.o dynarr.arm64.o + lib = ../android/libtreestore.a +endif + +CFLAGS = -O3 + +$(lib): $(obj) + $(AR) rcs $@ $(obj) + +%.arm64.o: %.c + $(CC) -o $@ $(CFLAGS) -c $< + +%.w32.o: %.c + $(CC) -o $@ $(CFLAGS) -c $< + +.PHONY: clean +clean: + rm -f $(obj) $(lib)