aboutsummaryrefslogtreecommitdiff
path: root/sample/Makefile
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-05-16 19:23:13 -0700
committerTrumeet <yuuta@yuuta.moe>2021-05-16 19:23:13 -0700
commit7e531d78bf330bfac65cf3f208c2300b607decee (patch)
treea430b80d94661b31c7982724bf4f24667ca297b9 /sample/Makefile
downloadextmc-7e531d78bf330bfac65cf3f208c2300b607decee.tar
extmc-7e531d78bf330bfac65cf3f208c2300b607decee.tar.gz
extmc-7e531d78bf330bfac65cf3f208c2300b607decee.tar.bz2
extmc-7e531d78bf330bfac65cf3f208c2300b607decee.zip
First Commit
Diffstat (limited to 'sample/Makefile')
-rw-r--r--sample/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/sample/Makefile b/sample/Makefile
new file mode 100644
index 0000000..8b9ee32
--- /dev/null
+++ b/sample/Makefile
@@ -0,0 +1,28 @@
+# Copyright 2019 ~ 2021 YuutaW Minecraft, All Rights Reserved.
+# Proprietary and confidential.
+# Unauthorized copying of any parts of this file, via any medium is strictly prohibited.
+# Written by Yuuta Liang <yuuta@yuuta.moe>, April 2021.
+
+CFLAGS= \
+ -I.\
+ -g \
+ -std=c99 \
+ -Wall \
+ -D_POSIX_C_SOURCE=200809L \
+
+
+LDFLAGS= \
+
+OBJ=main.o
+
+BIN=libsample.so
+
+%.o: %.c
+ $(CC) -c -o $@ $< $(CFLAGS) -fpic
+
+$(BIN): $(OBJ)
+ $(CC) -shared -o $@ $^ $(CFLAGS) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+ $(RM) *~ *.o $(BIN)