libsml/examples/Makefile

20 lines
336 B
Makefile
Raw Permalink Normal View History

2011-07-28 12:10:15 +02:00
UNAME := $(shell uname)
CFLAGS += -I../sml/include/ -g -Wall
OBJS = sml_server.o
LIBSML = ../sml/lib/libsml.a
2011-07-28 12:10:15 +02:00
ifeq ($(UNAME), Linux)
LIBS = -luuid
2011-07-28 12:10:15 +02:00
endif
sml_server : $(OBJS) $(LIBSML)
$(CC) $(CFLAGS) $(OBJS) $(LIBS) $(LIBSML) -o sml_server
%.o : %.c
$(CC) $(CFLAGS) -c $^ -o $@
.PHONY: clean
clean:
@rm -f *.o
@rm -f sml_server