diff options
author | Oxore <oxore@protonmail.com> | 2019-09-22 22:29:33 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2019-09-22 22:29:56 +0300 |
commit | 66fbdd735e19ee473aa3287133bd72e61fe56452 (patch) | |
tree | aa263918907ea2fb81e9bbba9cfb534afe2a031c /pg.mk | |
parent | 8c04c4bf9004afda45a68b8e1d4522d36478cd62 (diff) |
Add playground target, refactor Makefile's clean-ish rules
Diffstat (limited to 'pg.mk')
-rw-r--r-- | pg.mk | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +# playground target for trying things with SFML + +LIBF8=deps/libf8 + +ifneq ($(PREFIX),) +LDFLAGS+=-L$(PREFIX)/lib +LDFLAGS+=-Wl,-rpath=$(PREFIX)/lib +INCLUDE+=-I$(PREFIX)/include +endif + +INCLUDE+=-I$(LIBF8) + +LDFLAGS+=-lcsfml-graphics +LDFLAGS+=-lcsfml-window +LDFLAGS+=-lcsfml-system +LDFLAGS+=-lyaml + +CFLAGS+=-Wno-deprecated-declarations + +pg: src/target/pg.c $(LIBF8)/libf8.a + $(CC) $(LDFLAGS) $(CFLAGS) $(INCLUDE) $^ -o $@ + +$(LIBF8)/libf8.a: $(LIBF8) + make -C $< NOTEST=1 + +clean: + rm -rfv pg |