From ad3d03c116d948b739c48936b3aa112083cfeb01 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 27 Dec 2017 23:13:14 +0330 Subject: wip --- makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..b6f6f40 --- /dev/null +++ b/makefile @@ -0,0 +1,30 @@ +TARGET=main +CC=clang +CC?=clang +CC_FLAGS= +CC_EXTRA?= +CC_FLAGS+=$(CC_EXTRA) + +.DEFAULT:all clean + +.PHONY:all clean $(TARGET) help + +all:$(TARGET) + +.c.o: + $(CC) $(CC_FLAGS) -c $< -o $@ + +android: + export NDK_PROJECT_PATH=`pwd` + ndk-build + +$(TARGET): main.o + $(CC) $^ $(LD_FLAGS) -o $@ + +clean: + rm -f *.o *~ $(TARGET) + +help: + @echo "all is the default target" + @echo "there is delete." + @echo "there is clean." -- cgit v1.2.3