Initial code commit.
Little to no error reporting, still fairly brittle and not very well tested.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
BUILD_DIR ?= ./build
|
||||
SRC_DIR = ./src
|
||||
INC_DIR = $(SRC_DIR)
|
||||
|
||||
CC=h5cc
|
||||
CFLAGS=-Wall -g -O2 -fpic -I$(INC_DIR)
|
||||
|
||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c
|
||||
mkdir -p $(BUILD_DIR)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
plugin: $(BUILD_DIR)/plugin.o $(BUILD_DIR)/file.o
|
||||
mkdir -p $(BUILD_DIR)
|
||||
$(CC) $(CFLAGS) -shared $^ -o $(BUILD_DIR)/plugin.so
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -r $(BUILD_DIR)
|
||||
Reference in New Issue
Block a user