changed linking of libuuid from compilation to linking process

This commit is contained in:
Steffen Vogel 2011-09-01 11:15:58 +02:00
parent 0be87152d4
commit 74d65cd85f

View file

@ -1,10 +1,10 @@
UNAME := $(shell uname)
CFLAGS += -I../sml/include/ -Wall
LIBSML = ../sml/lib/libsml.a
ifeq ($(UNAME), Linux)
LIBS = -luuid
endif
LIBSML = ../sml/lib/libsml.a
UNITY = \
unity/unity.o \
@ -30,14 +30,14 @@ test_run: libsml test
@./test
test : $(UNITY) $(OBJS) $(LIBSML)
$(CC) $(CFLAGS) $(LIBS) $(LIBSML) $^ test_main.c -o test
$(CC) $(CFLAGS) $(LIBS) $^ test_main.c -o test
.PHONY: code
libsml :
@$(MAKE) -C ../sml
%.o : %.c
$(CC) $(CFLAGS) $(LIBS) -c $^ -o $@
$(CC) $(CFLAGS) -c $^ -o $@
.PHONY: clean
clean :
@ -45,8 +45,3 @@ clean :
@rm -f src/*.o
@rm -f test