linking now against static libsml (not object code)

This commit is contained in:
Steffen Vogel 2011-09-01 11:12:01 +02:00
parent 3d45088b4b
commit 0be87152d4

View file

@ -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: