uuid linking for Darwin, Linux
This commit is contained in:
parent
15da4cacca
commit
62cfbf6cee
2 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,14 @@
|
|||
UNAME := $(shell uname)
|
||||
CFLAGS += -I../sml/include/ -g -Wall
|
||||
OBJS = sml_server.o
|
||||
|
||||
ifeq ($(UNAME), Linux)
|
||||
LIBS = -L../sml/lib/ ../sml/lib/libsml.o -luuid
|
||||
endif
|
||||
ifeq ($(UNAME), Darwin)
|
||||
LIBS = -L../sml/lib/ ../sml/lib/libsml.o
|
||||
endif
|
||||
|
||||
|
||||
sml_server : $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LIBS) -o sml_server $(OBJS)
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
UNAME := $(shell uname)
|
||||
CFLAGS += -I../sml/include/ -Wall
|
||||
ifeq ($(UNAME), Linux)
|
||||
LIBS = -luuid
|
||||
endif
|
||||
LIBSML = ../sml/lib/libsml.a
|
||||
|
||||
|
||||
UNITY = \
|
||||
unity/unity.o \
|
||||
unity/unity_fixture.o
|
||||
|
@ -30,7 +35,7 @@ libsml :
|
|||
@$(MAKE) -C ../sml
|
||||
|
||||
%.o : %.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $@
|
||||
$(CC) $(CFLAGS) $(LIBS) -c $^ -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean :
|
||||
|
|
Loading…
Add table
Reference in a new issue