include ../conf/conf

TARGET	= sample

OBJ	= sample.o prob.o linpack.o
SRC	= sample.c prob.c linpack.c

.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<

all: $(TARGET) $(HOST)

$(TARGET): $(OBJ)
	$(CC) -o $(TARGET) $(OBJ) $(LDFLAGS)

install: all
	if [ ! -d $(BINDIR) ]; then \
		mkdir -p $(BINDIR); \
	fi
	cp $(TARGET) $(HOST) $(BINDIR)

host: host.c ../include/conf.h
	$(CC.HC) $(CFLAGS) $(CPPFLAGS) -o host host.c

clean:
	$(RM) -f $(TARGET) $(HOST) $(OBJ)
	$(RM) -f *~ *.bak

# DO NOT DELETE THIS LINE -- make depend depends on it.

linpack.o: ../include/conf.h ../include/dist.h ../include/dot.h
linpack.o: ../include/misc.h
prob.o: ../include/conf.h ../include/dist.h
prob.o: ../include/dot.h ../include/misc.h
sample.o: ../include/conf.h
