changed linking of libuuid from compilation to linking process
This commit is contained in:
parent
0be87152d4
commit
74d65cd85f
1 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue