diff options
author | Christian C <cc@localhost> | 2025-03-06 16:05:50 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-06 16:05:50 -0800 |
commit | 45171a3870915571c2bae4466a59eb2ebdf42b93 (patch) | |
tree | 9d7e7c12af1a40f9c969f59f3cc65550b0773f8e /Makefile | |
parent | 6d46ed36bcad62db89af29512b4ca5f4fa7c423a (diff) |
Modularize Visual UX
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ PKGS=libtiff-4 libpng -#PKGS+=raylib +DEFINES= EXE=prog BUILD_DIR=build/ OBJ_DIR=$(BUILD_DIR)obj/ @@ -11,6 +11,13 @@ OBJS=$(OBJS_sub:.c=.o) OBJ_DIRS_sub=$(shell find $(SRC_DIR) -type d) OBJ_DIRS=$(subst $(SRC_DIR),$(OBJ_DIR),$(OBJ_DIRS_sub)) +# Include raylib if we want a visual experience +VISUAL?= +ifdef VISUAL +PKGS+=raylib +DEFINES+=-DVISUAL +endif + ifeq ($(shell uname -s),Linux) PKGCONF=pkgconf endif @@ -21,6 +28,7 @@ endif CFLAGS= CFLAGS+=$(shell $(PKGCONF) --cflags $(PKGS)) CFLAGS+=-I$(INC_DIR) +CFLAGS+=$(DEFINES) LDFLAGS= LDFLAGS+=$(shell $(PKGCONF) --libs $(PKGS)) |