diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-06-16 03:31:55 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-06-16 03:31:55 +0900 |
| commit | cf0248fa04ffbd181051436b82465e3db69feb48 (patch) | |
| tree | 807df5e5f146cbb9a81e3c6902afb6ba25b9dce1 /Makefile | |
| download | 2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.tar.gz 2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.tar.zst 2048.c-cf0248fa04ffbd181051436b82465e3db69feb48.zip | |
first commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5189178 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +DIST := bin +SUFFIX := _minified +PROGRAM := $(DIST)/2048$(SUFFIX) + +all: run + +run: build + ./$(PROGRAM) + +build: $(DIST) $(PROGRAM) + +$(PROGRAM): 2048$(SUFFIX).c + gcc $^ -lncurses -o $@ + +$(DIST): + @mkdir $@ + +.PHONY: all run build |
