linking now against static libsml (not object code)
This commit is contained in:
parent
3d45088b4b
commit
0be87152d4
1 changed files with 6 additions and 6 deletions
|
@ -1,17 +1,17 @@
|
|||
UNAME := $(shell uname)
|
||||
CFLAGS += -I../sml/include/ -g -Wall
|
||||
OBJS = sml_server.o
|
||||
LIBSML = ../sml/lib/libsml.a
|
||||
|
||||
ifeq ($(UNAME), Linux)
|
||||
LIBS = -L../sml/lib/ ../sml/lib/libsml.o -luuid
|
||||
endif
|
||||
ifeq ($(UNAME), Darwin)
|
||||
LIBS = -L../sml/lib/ ../sml/lib/libsml.o
|
||||
LIBS = -luuid
|
||||
endif
|
||||
|
||||
sml_server : $(OBJS) $(LIBSML)
|
||||
$(CC) $(CFLAGS) $(OBJS) $(LIBS) $(LIBSML) -o sml_server
|
||||
|
||||
sml_server : $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LIBS) -o sml_server $(OBJS)
|
||||
%.o : %.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
Loading…
Add table
Reference in a new issue