diff options
author | epoch <epoch@thebackupbox.net> | 2020-05-05 20:37:32 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2020-05-05 20:37:32 -0500 |
commit | d520a505cd5e3c7864ee9de72cb1674e102bbbd6 (patch) | |
tree | acda73c1d73c19c77a5a5f9c2f8589b1c5c26a1d /src/Makefile | |
parent | 45845c153cf8a4b78831ec58eb722c31e019d7bf (diff) | |
download | hackvr-d520a505cd5e3c7864ee9de72cb1674e102bbbd6.tar.gz hackvr-d520a505cd5e3c7864ee9de72cb1674e102bbbd6.zip |
added ability to set library-specific paths
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 5803a1a..398aaa8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,12 +2,19 @@ PREFIX:=/usr/local/ -BASE_CFLAGS=-g -Wall -pedantic -std=c99 -ffast-math -I$(PREFIX)/include +### if you didn't install them after building, you can still point at them directly. +### right now, the header, and shared library are in their base dir, not lib or include subdirs. +LIBIDC_LIB_PATH:=$(PREFIX)/lib +LIBIDC_INCLUDE_PATH:=$(PREFIX)/include +LIBHASHTABLE_LIB_PATH:=$(PREFIX)/lib +LIBHASHTABLE_INCLUDE_PATH:=$(PREFIX)/include + +BASE_CFLAGS=-g -Wall -pedantic -std=c99 -ffast-math -I$(PREFIX)/include -I$(LIBIDC_INCLUDE_PATH) -I$(LIBHASHTABLE_INCLUDE_PATH) CFLAGS+=$(BASE_CFLAGS) CFLAGS+=-DGRAPHICAL -LDFLAGS+=-L$(PREFIX)/lib +LDFLAGS+=-L$(PREFIX)/lib -L$(LIBIDC_LIB_PATH) -L$(LIBHASHTABLE_LIB_PATH) #all: hackvr_headless hackvr_x11 hackvr_opengl slowcat ### when hackvr_opengl gets useful at all I'll start including it in default build. all: hackvr_fb hackvr_xdie hackvr_headless hackvr_x11 slowcat nonblocktail |