Adiciona tinyblocks-syntax, tinyblocks-regex e tinyblocks-markdown (com testes)
This commit is contained in:
1 parent
c75d4be1c2
commit
a921f6574d
16 files changed
+1846
-4
No files matched your search
@@ -0,0 +1,28 @@
|
||||
# Makefile da library syntax (categoria "Sintaxe")
|
||||
CC := gcc
|
||||
BUILD := build
|
||||
|
||||
CFLAGS := -std=c11 -Wall -Wextra -pedantic -fvisibility=hidden \
|
||||
-D_POSIX_C_SOURCE=200809L -I../../include -Iinclude
|
||||
|
||||
OBJ := $(BUILD)/tb_syntax.o
|
||||
LIB_A := $(BUILD)/libtinyblocks-syntax.a
|
||||
LIB_SO := $(BUILD)/libtinyblocks-syntax.so
|
||||
|
||||
.PHONY: all static shared clean
|
||||
all: static shared
|
||||
static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(OBJ): src/tb_syntax.c include/tb_syntax.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
$(LIB_A): $(OBJ)
|
||||
ar rcs $@ $^
|
||||
|
||||
$(LIB_SO): $(OBJ)
|
||||
$(CC) -shared -o $@ $^
|
||||
|
||||
clean:
|
||||
$(RM) -r $(BUILD)
|
||||
Reference in new issue
Block a user