summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-03-28 04:59:27 -0500
committerepoch <epoch@hacking.allowed.org>2020-03-28 04:59:27 -0500
commitc5f48430d7f644ecf7fa8f380ac653b76b488cc8 (patch)
treedce07c2543cc7118bf85d1c8a75e3c988012b58d /src/Makefile
parentc51b01bcd1b4f8d699a691f2119de5cffa786e0f (diff)
downloadhackvr-c5f48430d7f644ecf7fa8f380ac653b76b488cc8.tar.gz
hackvr-c5f48430d7f644ecf7fa8f380ac653b76b488cc8.zip
added ability for you to add custom LDLIBS when making
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 51b48a0..a5cac15 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,13 +9,13 @@ LDFLAGS=-L$(PREFIX)/lib
all: hackvr_headless hackvr_x11 slowcat nonblocktail
# hackvr_fb hackvr_freeglut slowcat
-nonblocktail: LDLIBS=-lidc
+nonblocktail: override LDLIBS+=-lidc
nonblocktail: nonblocktail.c
-hackvr_headless: LDLIBS=-lm -lidc -lhashtable
+hackvr_headless: override LDLIBS+=-lm -lidc -lhashtable
hackvr_headless: hackvr_headless.o math.o physics.o
-hackvr_x11: LDLIBS=-lm -lidc -lX11 -lhashtable
+hackvr_x11: override LDLIBS+=-lm -lidc -lX11 -lhashtable
hackvr_x11: hackvr_x11.o graphics_c3.o graphics_c2.o graphics_cs_x11.o math.o physics.o keyboard.o mouse_x11.o keyboard_x11.o input.o
#notice how all the targets have generic graphics objects up until a specific one.