diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79a4243 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC=cc +CFLAGS+=-std=c99 -pedantic -Wall -Wextra -O2 +LDFLAGS+=-lX11 -lxcb + +TSAR_OUT=tsarbar + +HEADERS= +SRC=src/tsar.c + +.PHONY: default run clean + +default: $(TSAR_OUT) + +# Project should be small enough that we should be able to ignore incremental +# compilation +$(TSAR_OUT): $(SRC) + $(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS) + +%.c: + +run: $(TSAR_OUT) + ./$(TSAR_OUT) + +clean: + rm $(TSAR_OUT) |
