From 37621e9e2dedd9093fa886547da9a203af3b8a40 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 20 Jul 2011 17:40:38 +0200 Subject: [PATCH 1/2] 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 : From b6a44c3af3eb62849990d05cae2bbfd4e89fb9c5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 20 Jul 2011 17:42:31 +0200 Subject: [PATCH 2/2] added binaries to gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3399f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +*.a +*.so