mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-24 07:10:44 -04:00
26c8cdd221
* git subrepo clone git@github.com:EllipticEllipsis/fado.git tools/fado subrepo: subdir: "tools/fado" merged: "d202857b" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "d202857b" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Makefile adjustments and additions to build fado * git subrepo pull --force tools/fado subrepo: subdir: "tools/fado" merged: "46c4d751" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "46c4d751" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/fado subrepo: subdir: "tools/fado" merged: "88114ebc" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "88114ebc" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Fix typo in makefile * Fix it, maybe? * git subrepo pull tools/fado subrepo: subdir: "tools/fado" merged: "f7efb10a9" upstream: origin: "git@github.com:EllipticEllipsis/fado.git" branch: "master" commit: "f7efb10a9" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Update build tools
34 lines
576 B
Makefile
34 lines
576 B
Makefile
OUT_DIR := build
|
|
CFLAGS := -O2 -g -std=c99 -Wall -Wextra -Wpedantic -Werror
|
|
|
|
SRCS := $(wildcard *.c)
|
|
OBJS := $(patsubst %.c,$(OUT_DIR)/%.o,$(SRCS))
|
|
|
|
LIB_NAME := vc-vector
|
|
SOBJ := $(OUT_DIR)/lib$(LIB_NAME).so
|
|
|
|
.PHONY: all lib test clean
|
|
|
|
all: lib
|
|
|
|
lib: $(SOBJ)
|
|
|
|
test: $(OUT_DIR)/test_runner
|
|
$(OUT_DIR)/test_runner
|
|
|
|
clean:
|
|
rm -rf $(OUT_DIR)
|
|
|
|
$(OUT_DIR):
|
|
mkdir -p $(OUT_DIR)
|
|
|
|
$(SOBJ): vc_vector.c | $(OUT_DIR)
|
|
$(CC) $(CFLAGS) -shared -fPIC $< -o $@
|
|
|
|
$(OUT_DIR)/%.o: %.c | $(OUT_DIR)
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(OUT_DIR)/test_runner: $(OBJS) | $(OUT_DIR)
|
|
$(CC) $^ -o $@
|
|
|