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 :