# # Makefile for the SDP example. # This probably requires GNU make. # # Location of includes and library CSRC = ../../src # Library name LNAME = uclmmbase DEFS = @DEFS@ CFLAGS = @CFLAGS@ $(DEFS) -I$(CSRC) LIBS = @LIBS@ -L$(CSRC) -l$(LNAME) CC = @CC@ TARGET = sdpdemo OBJS = sdpdemo.o SRCS = $(OBJS:%.o=%.c) all: $(TARGET) sdpdemo: $(OBJS) $(CSRC)/lib$(LNAME).a $(CC) $(CFLAGS) -o $@ $(@).o $(LIBS) .c.o: $(CC) $(CFLAGS) $(INC) -c $< $(CSRC)/lib$(LNAME).a: cd $(CSRC) && $(MAKE) clean: -rm -f $(OBJS) $(TARGET) distclean: clean -rm -f Makefile