diff options
author | Keuin <[email protected]> | 2024-01-20 00:37:36 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2024-01-20 01:44:12 +0800 |
commit | e3d0f924a416365ea12d8ace8569664cbb09dba5 (patch) | |
tree | 662d352bc0e2a5f2fdf404d566b2381a3ea9927a /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..744e9b1 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +JAVAC = javac + +HEADER_DIR = src/header +JAVA_SRC_DIR = src/java + +JAVA_SRC_FILE = $(JAVA_SRC_DIR)/FileCowCopier.java +JNI_HEADER = $(HEADER_DIR)/com_keuin_kbackupfabric_util_cow_FileCowCopier.h + +all: $(JNI_HEADER) + +$(JNI_HEADER): $(JAVA_SRC_FILE) + $(JAVAC) -h $(HEADER_DIR) $(JAVA_SRC_FILE) + +clean: + rm -rf $(HEADER_DIR) + +.PHONY: all clean |