From 37621e9e2dedd9093fa886547da9a203af3b8a40 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 20 Jul 2011 17:40:38 +0200 Subject: [PATCH] added libuuid to linker --- examples/Makefile | 2 +- test/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 42cc4df..cebbccc 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,6 +1,6 @@ CFLAGS += -I../sml/include/ -g -Wall OBJS = sml_server.o -LIBS = -L../sml/lib/ ../sml/lib/libsml.o +LIBS = -L../sml/lib/ ../sml/lib/libsml.o -luuid sml_server : $(OBJS) $(CC) $(CFLAGS) $(LIBS) -o sml_server $(OBJS) diff --git a/test/Makefile b/test/Makefile index e8c71a6..4a36a6c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,6 @@ CFLAGS += -I../sml/include/ -Wall LIBSML = ../sml/lib/libsml.a +LIBS = -luuid UNITY = \ unity/unity.o \ @@ -21,7 +22,7 @@ test_run: libsml test @./test test : $(UNITY) $(OBJS) $(LIBSML) - $(CC) $(CFLAGS) $(LIBSML) $^ test_main.c -o test + $(CC) $(CFLAGS) $(LIBSML) $(LIBS) $^ test_main.c -o test .PHONY: code libsml :