From: Michael D. Lowis Date: Wed, 27 Feb 2019 15:10:03 +0000 (-0500) Subject: fixed linker issues with new test binary X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8f1d98ad8c675635bbd6a97f56f8839a70c9b177;p=projs%2Ftide.git fixed linker issues with new test binary --- diff --git a/.gitignore b/.gitignore index 4ca8276..0ed572e 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ flaws.txt edit registrar fetch +tests/test_tide diff --git a/Makefile b/Makefile index d753321..7d3c61c 100644 --- a/Makefile +++ b/Makefile @@ -51,13 +51,14 @@ libedit.a: $(LIBEDIT_OBJS) $(AR) $(ARFLAGS) $@ $^ tests/libedit: tests/libedit.o tests/lib/buf.o tests/lib/utf8.o libedit.a +tests/test_tide: libedit.a # define implicit rule for building normal binaries bin/%: src/%.o libedit.a $(LD) -o $@ $^ $(LDFLAGS) # define implicit rule for building tests binaries -tests/%: tests/%.o libedit.a +tests/%: tests/%.o $(LD) -o $@ $^ $(LDFLAGS) # load generate dependencies diff --git a/config.mk b/config.mk index f32c2a8..6eadce4 100644 --- a/config.mk +++ b/config.mk @@ -10,7 +10,7 @@ PREFIX = $(HOME) INCS += -I/usr/X11/include \ -I/usr/X11/include/freetype2 \ -I. -LIBS += -L/usr/X11/lib +LIBS += -L. -L/usr/X11/lib # Linux Freetype2 Flags INCS += -I/usr/include/freetype2 diff --git a/inc/x11.h b/inc/x11.h index 79e3513..effc431 100644 --- a/inc/x11.h +++ b/inc/x11.h @@ -1,4 +1,3 @@ -/* library dependencies */ AUTOLIB(X11) AUTOLIB(Xinerama) AUTOLIB(Xft) diff --git a/tests/test_tide b/tests/test_tide deleted file mode 100755 index 8098b76..0000000 Binary files a/tests/test_tide and /dev/null differ